linux-yocto/net/rds
Håkon Bugge c62000bf27 rds: ib: Increment i_fastreg_wrs before bailing out
commit 4351ca3fcb3ffecf12631b4996bf085a2dad0db6 upstream.

We need to increment i_fastreg_wrs before we bail out from
rds_ib_post_reg_frmr().

We have a fixed budget of how many FRWR operations that can be
outstanding using the dedicated QP used for memory registrations and
de-registrations. This budget is enforced by the atomic_t
i_fastreg_wrs. If we bail out early in rds_ib_post_reg_frmr(), we will
"leak" the possibility of posting an FRWR operation, and if that
accumulates, no FRWR operation can be carried out.

Fixes: 1659185fb4 ("RDS: IB: Support Fastreg MR (FRMR) memory registration mode")
Fixes: 3a2886cca7 ("net/rds: Keep track of and wait for FRWR segments in use upon shutdown")
Cc: stable@vger.kernel.org
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Link: https://patch.msgid.link/20250911133336.451212-1-haakon.bugge@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-25 11:16:50 +02:00
..
af_rds.c
bind.c
cong.c
connection.c replace strncpy with strscpy_pad 2025-05-26 22:28:44 +02:00
ib_cm.c
ib_frmr.c rds: ib: Increment i_fastreg_wrs before bailing out 2025-09-25 11:16:50 +02:00
ib_mr.h
ib_rdma.c net/rds: remove unused struct 'rds_ib_dereg_odp_mr' 2024-10-03 16:42:52 -07:00
ib_recv.c
ib_ring.c
ib_send.c
ib_stats.c
ib_sysctl.c
ib.c
ib.h RDS: IB: Remove unused declarations 2024-08-01 09:03:28 -07:00
info.c
info.h
Kconfig net: rds: add option for GCOV profiling 2024-08-09 13:18:46 +01:00
loop.c
loop.h
Makefile net: rds: add option for GCOV profiling 2024-08-09 13:18:46 +01:00
message.c
page.c rds: Use nested-BH locking for rds_page_remainder 2025-05-15 15:23:31 +02:00
rdma_transport.c
rdma_transport.h
rdma.c
rds_single_path.h
rds.h
recv.c
send.c
stats.c net/rds: Replace deprecated strncpy() with strscpy_pad() 2025-02-21 15:51:26 -08:00
sysctl.c
tcp_connect.c
tcp_listen.c
tcp_recv.c rds:Simplify the allocation of slab caches 2024-06-19 10:47:40 +01:00
tcp_send.c
tcp_stats.c
tcp.c net: better track kernel sockets lifetime 2025-02-21 16:00:58 -08:00
tcp.h
threads.c
transport.c