summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@tonian.com>2012-02-23 17:40:52 -0800
committerJ. Bruce Fields <bfields@redhat.com>2012-03-06 18:13:35 -0500
commit508dc6e110c6dbdc0bbe84298ccfe22de7538486 (patch)
treef55bd04f6a51fecb020a6b677935e232a3d9d709 /fs/nfsd/nfs4proc.c
parente27f49c33b7410f4db065bc4382a8e03769eecc3 (diff)
downloadop-kernel-dev-508dc6e110c6dbdc0bbe84298ccfe22de7538486.zip
op-kernel-dev-508dc6e110c6dbdc0bbe84298ccfe22de7538486.tar.gz
nfsd41: free_session/free_client must be called under the client_lock
The session client is manipulated under the client_lock hence both free_session and nfsd4_del_conns must be called under this lock. This patch adds a BUG_ON that checks this condition in the respective functions and implements the missing locks. nfsd4_{get,put}_session helpers were moved to the C file that uses them so to prevent use from external files and an unlocked version of nfsd4_put_session is provided for external use from nfs4xdr.c Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud