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

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 think there's any functional difference between the two, but
it is a little confusing to see some uses of rdma_cm_id and some of
ib_pd.

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