Files
Linux/include/linux/sunrpc
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Cc: [email protected]
2010-09-12 19:55:25 -04:00
..
…
2010-09-12 19:55:25 -04:00
…
…
…
…
…
…
…
…