Trond Myklebust 006abe887c 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 <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
2010-09-12 19:55:25 -04:00
..
2010-09-09 18:57:24 -07:00
2010-09-12 19:55:25 -04:00
2010-08-08 20:58:20 +01:00
2010-09-08 21:45:01 -07:00
2010-08-04 10:44:19 -07:00