linux-stable/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
frwr_ops.c
ib_client.c
Makefile
module.c
rpc_rdma.c
svc_rdma_backchannel.c
svc_rdma_pcl.c
svc_rdma_recvfrom.c
svc_rdma_rw.c
svc_rdma_sendto.c
svc_rdma_transport.c svcrdma: Unregister the device if svc_rdma_accept() fails 2025-06-27 11:11:16 +01:00
svc_rdma.c
transport.c
verbs.c
xprt_rdma.h