kernel_samsung_a53x/net/rds
Yewon Choi 5d9da780a6 rds: introduce acquire/release ordering in acquire/release_in_xmit()
[ Upstream commit 1422f28826d2a0c11e5240b3e951c9e214d8656e ]

acquire/release_in_xmit() work as bit lock in rds_send_xmit(), so they
are expected to ensure acquire/release memory ordering semantics.
However, test_and_set_bit/clear_bit() don't imply such semantics, on
top of this, following smp_mb__after_atomic() does not guarantee release
ordering (memory barrier actually should be placed before clear_bit()).

Instead, we use clear_bit_unlock/test_and_set_bit_lock() here.

Fixes: 0f4b1c7e89e6 ("rds: fix rds_send_xmit() serialization")
Fixes: 1f9ecd7eacfd ("RDS: Pass rds_conn_path to rds_send_xmit()")
Signed-off-by: Yewon Choi <woni9911@gmail.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://lore.kernel.org/r/ZfQUxnNTO9AJmzwc@libra05
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:59 +01:00
..
af_rds.c net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv 2024-11-18 12:13:00 +01:00
bind.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cong.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
connection.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_cm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_frmr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_mr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_rdma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_recv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_ring.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_send.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_sysctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
info.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loop.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
message.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma.c net/rds: fix WARNING in rds_conn_connect_if_down 2024-11-18 23:19:34 +01:00
rdma_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma_transport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rds.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rds_single_path.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
send.c rds: introduce acquire/release ordering in acquire/release_in_xmit() 2024-11-19 08:44:59 +01:00
stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_connect.c net: prevent address rewrite in kernel_bind() 2024-11-08 11:25:44 +01:00
tcp_listen.c net: prevent address rewrite in kernel_bind() 2024-11-08 11:25:44 +01:00
tcp_recv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_send.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
threads.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00