NFSv4: Ensure we reference the inode for return-on-close in delegreturn
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 5 Feb 2015 20:13:24 +0000 (15:13 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 6 Feb 2015 02:31:06 +0000 (21:31 -0500)
commitea7c38fef0b774a5dc16fb0ca5935f0ae8568176
treebeab8b32b90a57d54293eb83bd8d5f3f75c3be2c
parent6ae373394c4257bad562817aa60464ff7fe8f9c4
NFSv4: Ensure we reference the inode for return-on-close in delegreturn

If we have to do a return-on-close in the delegreturn code, then
we must ensure that the inode and super block remain referenced.

Cc: Peng Tao <tao.peng@primarydata.com>
Cc: stable@vger.kernel.org # 3.17.x
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Peng Tao <tao.peng@primarydata.com>
fs/nfs/internal.h
fs/nfs/nfs4proc.c
fs/nfs/super.c