mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 02:48:21 +00:00
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>
This commit is contained in:
parent
f71dfe8fc9
commit
28c1acffea
@ -1040,7 +1040,6 @@ _pnfs_return_layout(struct inode *ino)
|
|||||||
goto out_put_layout_hdr;
|
goto out_put_layout_hdr;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
|
|
||||||
send = pnfs_prepare_layoutreturn(lo, &stateid, NULL);
|
send = pnfs_prepare_layoutreturn(lo, &stateid, NULL);
|
||||||
spin_unlock(&ino->i_lock);
|
spin_unlock(&ino->i_lock);
|
||||||
pnfs_free_lseg_list(&tmp_list);
|
pnfs_free_lseg_list(&tmp_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user