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)
commit3fb87d13ce29637e0ae005fa66a4f917cce6fede
treec7f5736bc8beac637534dd42dfa5929e337fd61c
parentcdc975050077d707d5315e51c2b05a763d4895e5
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