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:39:04 +0000 (08:39 +0000)
commit8fb42f722743c226d1079e40d4ad96d8d8aef273
tree53b62cc3c66993141f7a3ecc2af1688e5e61865a
parent8ead2acf0e5ade83a39dc47e97aa7ef3bc1c1ec0
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