On Mon, Mar 10, 2014 at 05:41:41PM +0800, Yan, Zheng wrote: > The temporary file handle should be freed when nfsd4_encode_fattr() > finishes its job. Christoph Hellwig suggests to move the code that > generates the temporary file handle into nfsd4_encode_dirent_fattr() > > Signed-off-by: Yan, Zheng <zheng.z.yan@xxxxxxxxx> I'd also add a BUG_ON to assert we have the file handle if needed in nfsd4_encode_fattr. But maybe I was a bit too fast in my initial reply and we should put in your simple fix first for the current -rc and -stable and have the cleanup on top of it. There's a lot more refactoring that should be done to nfsd4_encode_fattr anyway. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html