nfsd4: fix destroy_session race
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 14 Mar 2013 23:55:33 +0000 (19:55 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Apr 2013 15:48:38 +0000 (11:48 -0400)
commitabcdff09a05117112aa22cd84939039655bca710
tree307abc0998ddfdfcf2cc1d251190ea606476b060
parentbfa85e83a87aec71cbb231256eaad7341aa8b4fa
nfsd4: fix destroy_session race

destroy_session uses the session and client without continuously holding
any reference or locks.

Put the whole thing under the state lock for now.

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