]> git.karo-electronics.de Git - linux-beck.git/commit
nfsd: Protect adding/removing open state owners using client_lock
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 30 Jul 2014 01:34:34 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 31 Jul 2014 18:20:24 +0000 (14:20 -0400)
commit7ffb588086e941aa0a46a33e2bf2bf3c0963ed98
treeea15185306219711d7e5d7b7546ac1d03bb61a1f
parentb401be22b5cf059290ee98106bc780e087407d45
nfsd: Protect adding/removing open state owners using client_lock

Once we remove client mutex protection, we'll need to ensure that
stateowner lookup and creation are atomic between concurrent compounds.
Ensure that alloc_init_open_stateowner checks the hashtable under the
client_lock before adding a new element.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c