]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xprtrdma: Add unique trace points for posting Local Invalidate WRs
authorChuck Lever <chuck.lever@oracle.com>
Wed, 9 Oct 2019 17:07:21 +0000 (13:07 -0400)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit70429e8e9a683d47564719711783bb12c1d1617c
tree1ada11bec0a9b4437fde702ec0688ed4d38095bd
parent4d2cced9f862ee902c33374dc8a8b0f9cd041cd9
xprtrdma: Add unique trace points for posting Local Invalidate WRs

BugLink: https://bugs.launchpad.net/bugs/1862227
commit 4b93dab36f28e673725e5e6123ebfccf7697f96a upstream.

When adding frwr_unmap_async way back when, I re-used the existing
trace_xprtrdma_post_send() trace point to record the return code
of ib_post_send.

Unfortunately there are some cases where re-using that trace point
causes a crash. Instead, construct a trace point specific to posting
Local Invalidate WRs that will always be safe to use in that context,
and will act as a trace log eye-catcher for Local Invalidation.

Fixes: 847568942f93 ("xprtrdma: Remove fr_state")
Fixes: d8099feda483 ("xprtrdma: Reduce context switching due ... ")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Bill Baker <bill.baker@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/trace/events/rpcrdma.h
net/sunrpc/xprtrdma/frwr_ops.c