summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-09-06 00:53:26 +0800
committerTom Haynes <loghyr@primarydata.com>2015-02-03 11:06:42 -0800
commite736a5b98c7aa98fe572990caf5fed9593c72a67 (patch)
tree211cb03b020a4f83005e8facd97fdd39429f7525 /fs/nfs/nfs4proc.c
parentaa1e0e3a8e3f16ff50a72a8c623d7e1c467383bc (diff)
downloadblackbird-op-linux-e736a5b98c7aa98fe572990caf5fed9593c72a67.tar.gz
blackbird-op-linux-e736a5b98c7aa98fe572990caf5fed9593c72a67.zip
nfs41: clear NFS_LAYOUT_RETURN if layoutreturn is sent or failed to send
So that pnfs path is not disabled for ever. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 19432842b2dc..e19b5dbe535a 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7796,6 +7796,7 @@ static void nfs4_layoutreturn_release(void *calldata)
spin_lock(&lo->plh_inode->i_lock);
if (lrp->res.lrs_present)
pnfs_set_layout_stateid(lo, &lrp->res.stateid, true);
+ clear_bit(NFS_LAYOUT_RETURN, &lo->plh_flags);
lo->plh_block_lgets--;
spin_unlock(&lo->plh_inode->i_lock);
pnfs_put_layout_hdr(lrp->args.layout);
OpenPOWER on IntegriCloud