aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorGravatar Trond Myklebust <trond.myklebust@primarydata.com> 2016-11-19 08:48:47 -0500
committerGravatar Trond Myklebust <trond.myklebust@primarydata.com> 2016-12-01 17:21:48 -0500
commit53e6fc86abbbd7338f16267846a58de7ee24e839 (patch)
tree9f2e7aa86a7750f71b9c082ab78b77be75c90301 /fs/nfs/pnfs.c
parentpNFS: Enable layoutreturn operation for return-on-close (diff)
downloadlinux-53e6fc86abbbd7338f16267846a58de7ee24e839.tar.gz
linux-53e6fc86abbbd7338f16267846a58de7ee24e839.tar.bz2
linux-53e6fc86abbbd7338f16267846a58de7ee24e839.zip
pNFS: Prevent unnecessary layoutreturns after delegreturn
If we cannot grab the inode or superblock, then we cannot pin the layout header, and so we cannot send a layoutreturn as part of an async delegreturn call. In this case, we currently end up sending an extra layoutreturn after the delegreturn. Since the layout was implicitly returned by the delegreturn, that just gets a BAD_STATEID. The fix is to simply complete the return-on-close immediately. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
0 files changed, 0 insertions, 0 deletions