]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: hash deleg stateid only on successful nfs4_set_delegation
authorBenny Halevy <bhalevy@primarydata.com>
Fri, 30 May 2014 13:09:31 +0000 (09:09 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 4 Jun 2014 19:42:04 +0000 (15:42 -0400)
commit36f584063498471d4c39b9239897408b0f846e19
treec7f5736bc8beac637534dd42dfa5929e337fd61c
parentc388aa4759dd83b7da8535a57bc3e307aafed1cb
nfsd4: hash deleg stateid only on successful nfs4_set_delegation

We don't want the stateid to be found in the hash table before the delegation
is granted.

Currently this is protected by the client_mutex, but we want to break that
up and this is a necessary step toward that goal.

Signed-off-by: Benny Halevy <bhalevy@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c