diff options
author | Christoph Hellwig <hch@lst.de> | 2014-08-21 11:09:22 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-10 12:47:01 -0700 |
commit | 47abadefad213bb7de9592d2e09a8bd282ddc3de (patch) | |
tree | 654dab2b331441f3a823a33ad1912578459f6cd9 /fs/nfs/nfs4state.c | |
parent | defb8460881cbf0a5890bc7a63b42c0cfbed721d (diff) |
pnfs: avoid using stale stateids after layoutreturn
After we issued a layoutreturn operations the may free the layout stateid
and will thus cause bad stateid error when the client uses it again.
We currently try to avoid this case by chosing the open stateid if not
lsegs are present for this inode. But various places can hold refererence
on lsegs and thus cause the list not to be empty shortly after a layout
return. Add an explicit flag to mark the current layout stateid invalid
and force usage of the openstateid after we did a full file layoutreturn.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
0 files changed, 0 insertions, 0 deletions