aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2024-06-20 15:21:55 +0200
committerJakub Kicinski <kuba@kernel.org>2024-06-24 16:41:22 -0700
commit585aa621af6cd11d3d6f830965af3e45ee79ea51 (patch)
tree4974e3703e095ffcc2f0e2e11036b4c02a9e7cf9 /net/ipv4/tcp_ipv4.c
parentbdacf3e34945232037979b977d7f409f734a7226 (diff)
downloadlinux-585aa621af6cd11d3d6f830965af3e45ee79ea51.tar.gz
linux-585aa621af6cd11d3d6f830965af3e45ee79ea51.tar.bz2
linux-585aa621af6cd11d3d6f830965af3e45ee79ea51.zip
net/tcp_sigpool: Use nested-BH locking for sigpool_scratch.
sigpool_scratch is a per-CPU variable and relies on disabled BH for its locking. Without per-CPU locking in local_bh_disable() on PREEMPT_RT this data structure requires explicit locking. Make a struct with a pad member (original sigpool_scratch) and a local_lock_t and use local_lock_nested_bh() for locking. This change adds only lockdep coverage and does not alter the functional behaviour for !PREEMPT_RT. Cc: David Ahern <dsahern@kernel.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://patch.msgid.link/20240620132727.660738-6-bigeasy@linutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions