Benny Halevy 508dc6e110 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>
2012-03-06 18:13:35 -05:00
..
2011-01-04 18:22:10 -05:00
2008-02-01 16:42:05 -05:00
2011-07-18 09:39:01 -04:00
2012-02-03 14:26:42 -05:00
2011-11-07 21:10:47 -05:00
2011-11-07 21:10:47 -05:00
2011-11-07 21:10:47 -05:00
2011-11-07 21:10:47 -05:00
2011-07-18 09:39:01 -04:00
2011-11-07 21:10:48 -05:00
2012-01-03 22:55:10 -05:00
2012-01-03 22:55:10 -05:00
2011-03-31 11:26:23 -03:00
2011-05-10 10:16:21 +02:00
2012-01-03 22:55:10 -05:00