From: Trond Myklebust Date: Sun, 12 Sep 2010 23:55:25 +0000 (-0400) Subject: SUNRPC: Fix a race in rpc_info_open X-Git-Tag: v2.6.36-rc5~36^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006abe887c5e637d059c44310de6c92f36aded3b;p=pandora-kernel.git SUNRPC: Fix a race in rpc_info_open There is a race between rpc_info_open and rpc_release_client() in that nothing stops a process from opening the file after the clnt->cl_kref goes to zero. Fix this by using atomic_inc_unless_zero()... Reported-by: J. Bruce Fields Signed-off-by: Trond Myklebust Cc: stable@kernel.org --- Reading git-diff-tree failed