linux/net/sunrpc/xprtrdma
Olga Kornievskaia fbda9cac1b svcrdma: do not unregister device for listeners
commit 750037aa0a upstream.

On an rdma-capable machine, a start/stop/start and then on a stop of
a knfsd server would lead kref underflow warning because svc_rdma_free
would indiscriminately unregister the rdma device but a listening
transport never calls the rdma_rn_register() thus leading to kref
going down to 0 on the 1st stop of the server and on the 2nd stop
it leads to a problem.

Suggested-by: Chuck Lever <chuck.lever@oracle.com>
Fixes: c4de97f7c4 ("svcrdma: Handle device removal outside of the CM event handler")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-04-20 10:15:43 +02:00
..
backchannel.c SUNRPC: change the back-channel queue to lwq 2023-10-16 12:44:08 -04:00
frwr_ops.c xprtrdma: Clean up synopsis of frwr_mr_unmap() 2024-07-08 13:47:24 -04:00
ib_client.c rpcrdma: Always release the rpcrdma_device's xa_array 2024-10-30 16:14:00 -04:00
Makefile rpcrdma: Implement generic device removal 2024-07-08 13:47:24 -04:00
module.c rpcrdma: Implement generic device removal 2024-07-08 13:47:24 -04:00
rpc_rdma.c xprtrdma: Remove temp allocation of rpcrdma_rep objects 2024-07-08 13:47:24 -04:00
svc_rdma.c svcrdma: fix miss destroy percpu_counter in svc_rdma_proc_init() 2024-12-05 14:02:26 +01:00
svc_rdma_backchannel.c svcrdma: Post Send WR chain 2024-03-01 09:12:28 -05:00
svc_rdma_pcl.c svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
svc_rdma_recvfrom.c svcrdma: Address an integer overflow 2024-12-05 14:02:24 +01:00
svc_rdma_rw.c Revert "svcrdma: Add Write chunk WRs to the RPC's Send WR chain" 2024-04-20 11:20:41 -04:00
svc_rdma_sendto.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
svc_rdma_transport.c svcrdma: do not unregister device for listeners 2025-04-20 10:15:43 +02:00
transport.c net: sunrpc: Remove the now superfluous sentinel elements from ctl_table array 2024-05-03 13:29:42 +01:00
verbs.c xprtrdma: Remove temp allocation of rpcrdma_rep objects 2024-07-08 13:47:24 -04:00
xprt_rdma.h xprtrdma: Remove temp allocation of rpcrdma_rep objects 2024-07-08 13:47:24 -04:00