Should all calls to rpc_peeraddr2str() be protected with
rcu_read_lock(). callback_proc.c makes calls to rpc_peeraddr2str()
without acquiring such lock. Can somebody comment if this is a bug?
Thank you.
Hi Olga,
On Fri, Nov 14, 2014 at 11:12 AM, Olga Kornievskaia
<[email protected]> wrote:
> Should all calls to rpc_peeraddr2str() be protected with
> rcu_read_lock(). callback_proc.c makes calls to rpc_peeraddr2str()
> without acquiring such lock. Can somebody comment if this is a bug?
>
Those calls are made from inside the dprintk_rcu() macro, so they
should be safely protected by the rcu lock taken there.
Cheers
Trond
--
Trond Myklebust
Linux NFS client maintainer, PrimaryData
[email protected]