diff options
author | Trond Myklebust | 2017-11-03 08:00:13 -0400 |
---|---|---|
committer | J. Bruce Fields | 2017-11-27 16:45:10 -0500 |
commit | 659aefb68eca28ba9aa482a9fc64de107332e256 (patch) | |
tree | a8183d2a3c27c9f74a21051015362b91a54e2b28 /lib | |
parent | fb500a7cfee7f2f447d2bbf30cb59629feab6ac1 (diff) |
nfsd: Ensure we don't recognise lock stateids after freeing them
In order to deal with lookup races, nfsd4_free_lock_stateid() needs
to be able to signal to other stateful functions that the lock stateid
is no longer valid. Right now, nfsd_lock() will check whether or not an
existing stateid is still hashed, but only in the "new lock" path.
To ensure the stateid invalidation is also recognised by the "existing lock"
path, and also by a second call to nfsd4_free_lock_stateid() itself, we can
change the type to NFS4_CLOSED_STID under the stp->st_mutex.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions