linux-yocto/net/sunrpc/xprtrdma
Chuck Lever cb3cba0ec3 svcrdma: Unregister the device if svc_rdma_accept() fails
commit 8ac6fcae5d upstream.

To handle device removal, svc_rdma_accept() requests removal
notification for the underlying device when accepting a connection.
However svc_rdma_free() is not invoked if svc_rdma_accept() fails.
There needs to be a matching "unregister" in that case; otherwise
the device cannot be removed.

Fixes: c4de97f7c4 ("svcrdma: Handle device removal outside of the CM event handler")
Cc: stable@vger.kernel.org
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:11:16 +01: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_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: Unregister the device if svc_rdma_accept() fails 2025-06-27 11:11:16 +01:00
svc_rdma.c svcrdma: fix miss destroy percpu_counter in svc_rdma_proc_init() 2024-12-05 14:02:26 +01: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