]> git.ipfire.org Git - thirdparty/linux.git/commit
svcrdma: Clean up use of rdma->sc_pd->device in Receive paths
authorChuck Lever <chuck.lever@oracle.com>
Fri, 27 Feb 2026 14:03:29 +0000 (09:03 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commita5f2087f3762bbf0c54f0a7796dc95bd39863c5f
treee562ebea635f034ed273a1f9ec90c5e7eaf15af7
parentccc89b9d1ed233349cfe8d87b842e7351b74d8de
svcrdma: Clean up use of rdma->sc_pd->device in Receive paths

I can't think of a reason why svcrdma is using the PD's device. Most
other consumers of the IB DMA API use the ib_device pointer from the
connection's rdma_cm_id.

I don't believe there's any functional difference between the two,
but it is a little confusing to see some uses of rdma_cm_id->device
and some of ib_pd->device.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c