aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2025-05-12 09:27:29 +0000
committerPaolo Abeni <[email protected]>2025-05-15 13:23:31 +0000
commit672318331b44753ab7bd8545558939c38b4c1132 (patch)
treea48ce8d89a96680738e8adc03fcc21eb660f48ba /net/unix/af_unix.c
parentopenvswitch: Merge three per-CPU structures into one (diff)
downloadkernel-672318331b44753ab7bd8545558939c38b4c1132.tar.gz
kernel-672318331b44753ab7bd8545558939c38b4c1132.zip
openvswitch: Use nested-BH locking for ovs_pcpu_storage
ovs_pcpu_storage 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. The data structure can be referenced recursive and there is a recursion counter to avoid too many recursions. Add a local_lock_t to the data structure and use local_lock_nested_bh() for locking. Add an owner of the struct which is the current task and acquire the lock only if the structure is not owned by the current task. Cc: Aaron Conole <[email protected]> Cc: Eelco Chaudron <[email protected]> Cc: Ilya Maximets <[email protected]> Cc: [email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Reviewed-by: Aaron Conole <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions