]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Add correct rcu_dereference annotation in rpc_clnt_set_transport
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 20:42:44 +0000 (16:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 20:46:37 +0000 (16:46 -0400)
commit2cb7f3bf557c79378b70f457634e5a54ce5170e8
tree69c3aa663909cbd6fb45bdf55d2ff6ad9d78272c
parent160d9d1e8cbecc5e29e8ae830290a7edb163d842
SUNRPC: Add correct rcu_dereference annotation in rpc_clnt_set_transport

rpc_clnt_set_transport should use rcu_derefence_protected(), as it is
only safe to be called with the rpc_clnt::cl_lock held.

Cc: Chuck Lever <Chuck.Lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c