xprtrdma: Trace unmap_sync calls
authorChuck Lever <chuck.lever@oracle.com>
Mon, 9 Nov 2020 19:40:08 +0000 (14:40 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 11 Nov 2020 15:49:12 +0000 (10:49 -0500)
commit8e24e191d44f49f08f857f0ebc6fe91961cd1a09
tree924deace34da793a328c3e49727123426c49623c
parent7703db978d4cf7c51426183b7c0d03c039757a44
xprtrdma: Trace unmap_sync calls

->buf_free is called nearly once per RPC. Only rarely does
xprt_rdma_free() have to do anything, thus tracing every one of
these calls seems unnecessary. Instead, just throw a trace event
when that one occasional RPC still has MRs that need to be
released.

xprt_rdma_free() is further micro-optimized to reduce the amount of
work done in the common case.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/trace/events/rpcrdma.h
net/sunrpc/xprtrdma/transport.c