android_kernel_motorola_sm6375/net/rds
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yewon Choi f781fb5177 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: 0f4b1c7e89 ("rds: fix rds_send_xmit() serialization")
Fixes: 1f9ecd7eac ("RDS: Pass rds_conn_path to rds_send_xmit()")
Signed-off-by: Yewon Choi <[email protected]>
Reviewed-by: Michal Kubiak <[email protected]>
Link: https://lore.kernel.org/r/ZfQUxnNTO9AJmzwc@libra05
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-03-26 18:22:25 -04:00
..
af_rds.c net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv 2024-02-23 08:24:50 +01:00
bind.c
cong.c
connection.c rds: memory leak in __rds_conn_create() 2021-12-22 09:29:37 +01:00
ib.c
ib.h
ib_cm.c
ib_fmr.c
ib_frmr.c net/rds: dma_map_sg is entitled to merge entries 2021-09-03 10:08:15 +02:00
ib_mr.h
ib_rdma.c
ib_recv.c rds: add missing barrier to release_refill 2022-08-25 11:18:18 +02:00
ib_ring.c
ib_send.c
ib_stats.c
ib_sysctl.c
info.c
info.h
Kconfig
loop.c
loop.h
Makefile
message.c rds: rds_rm_zerocopy_callback() correct order for list_add_tail() 2023-03-11 16:43:41 +01:00
page.c
rdma.c net/rds: fix WARNING in rds_conn_connect_if_down 2024-03-15 10:48:14 -04:00
rdma_transport.c net: rds: Fix possible NULL-pointer dereference 2023-10-10 21:46:38 +02:00
rdma_transport.h
rds.h
rds_single_path.h
recv.c
send.c rds: introduce acquire/release ordering in acquire/release_in_xmit() 2024-03-26 18:22:25 -04:00
stats.c
sysctl.c
tcp.c net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks() 2022-10-26 13:22:26 +02:00
tcp.h
tcp_connect.c net: prevent address rewrite in kernel_bind() 2023-10-25 11:53:18 +02:00
tcp_listen.c net: prevent address rewrite in kernel_bind() 2023-10-25 11:53:18 +02:00
tcp_recv.c
tcp_send.c
tcp_stats.c
threads.c
transport.c