]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pNFS: Remove redundant stateid invalidation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 21 Jul 2016 18:45:19 +0000 (14:45 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 24 Jul 2016 20:16:42 +0000 (16:16 -0400)
The layout stateid will be invalidated once it holds no more layout
segments anyway.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c

index 49e952968edee1d797fc4520d458ff2c87be236f..c9a684c128b8296e54fac76054eef2ce068358d1 100644 (file)
@@ -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);