summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-07-21 20:45:19 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-07-24 22:16:42 +0200
commit28c1acffead59a461e552708cc9daa9c1cb5a085 (patch)
tree42987ced6bcc03271a0fbf69d44b5568e6e79594 /fs/nfs
parentpNFS: Remove redundant pnfs_mark_layout_returned_if_empty() (diff)
downloadlinux-28c1acffead59a461e552708cc9daa9c1cb5a085.tar.xz
linux-28c1acffead59a461e552708cc9daa9c1cb5a085.zip
pNFS: Remove redundant stateid invalidation
The layout stateid will be invalidated once it holds no more layout segments anyway. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/pnfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 49e952968ede..c9a684c128b8 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -1040,7 +1040,6 @@ _pnfs_return_layout(struct inode *ino)
goto out_put_layout_hdr;
}
- set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
send = pnfs_prepare_layoutreturn(lo, &stateid, NULL);
spin_unlock(&ino->i_lock);
pnfs_free_lseg_list(&tmp_list);