]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Remove temp allocation of rpcrdma_rep objects
authorChuck Lever <chuck.lever@oracle.com>
Tue, 4 Jun 2024 19:45:27 +0000 (15:45 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Jul 2024 17:47:24 +0000 (13:47 -0400)
commit0e13dd9ea8be46f980a46c3ffd8cb786f3e2fb5b
treec0f6cbbaca3c27d32d0e12cbc59ce30e87eb5282
parent9d53378c2c145991fb5bc986c82eb9030212c2ea
xprtrdma: Remove temp allocation of rpcrdma_rep objects

The original code was designed so that most calls to
rpcrdma_rep_create() would occur on the NUMA node that the device
preferred. There are a few cases where that's not possible, so
those reps are marked as temporary.

However, we have the device (and its preferred node) already in
rpcrdma_rep_create(), so let's use that to guarantee the memory
is allocated from the correct node.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h