From: Benny Halevy Date: Fri, 24 Feb 2012 01:40:52 +0000 (-0800) Subject: nfsd41: free_session/free_client must be called under the client_lock X-Git-Tag: v3.4-rc1~40^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508dc6e110c6dbdc0bbe84298ccfe22de7538486;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed