NFS: Avoid RCU usage in tracepoints
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 1 Nov 2017 19:48:43 +0000 (15:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:46 +0000 (08:40 +0000)
commit2deb89453f74c576e145f4fd21664d175daf6bee
treee82709ea45f15e14f17291ea2101bed852c9e911
parentaed1a43399c78d7c329ec39b9a4d352216c40a16
NFS: Avoid RCU usage in tracepoints

commit 3944369db701f075092357b511fd9f5755771585 upstream.

There isn't an obvious way to acquire and release the RCU lock during a
tracepoint, so we can't use the rpc_peeraddr2str() function here.
Instead, rely on the client's cl_hostname, which should have similar
enough information without needing an rcu_dereference().

Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4trace.h