]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xprtrdma: Use sendctx DMA state for Send signaling
authorChuck Lever <chuck.lever@oracle.com>
Tue, 26 May 2026 14:14:01 +0000 (10:14 -0400)
committerAnna Schumaker <anna.schumaker@hammerspace.com>
Mon, 8 Jun 2026 14:21:55 +0000 (10:21 -0400)
commit2797ae7c929610fb2d2303a996a08173fa096730
treeb002ee25faf9f0fb3a775dfcf827d7a4bc577bd0
parent13e198a90ca4050f4bee8a3f23680389a6563ccc
xprtrdma: Use sendctx DMA state for Send signaling

Send signaling matters only when the prepared Send has page
mappings to unmap. Today that test is expressed indirectly with
rl_kref, because the Send-side reference is taken only for Sends
with mapped SGEs.

Split the SGE DMA unmap loop into its own helper and use
sc_unmap_count directly for the signaling decision. This keeps the
current behavior but removes one dependency on the old rl_kref
semantics before the request lifetime rules are changed.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/rpc_rdma.c