]> git.baikalelectronics.ru Git - kernel.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)
commitf4ede13f9ef8bfd7b7c6f1f357881b294dbfe194
treeea15185306219711d7e5d7b7546ac1d03bb61a1f
parent72cad6a97a561f9fc8bc22cd5a58785f1fedf9e7
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