]> www.infradead.org Git - users/dwmw2/linux.git/commit
rcu/nocb: Handle concurrent nocb kthreads creation
authorNeeraj Upadhyay <quic_neeraju@quicinc.com>
Sat, 11 Dec 2021 17:01:39 +0000 (22:31 +0530)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 14 Dec 2021 21:30:58 +0000 (21:30 +0000)
commit8434706bf04a30eeccf096e0b2dd27040a1c3f4b
tree3052991a5e4e74fd91d4be9324c4acac1319bede
parentcb04bad40acb47f92099f0a03709ff4c7142087b
rcu/nocb: Handle concurrent nocb kthreads creation

When multiple CPUs in the same nocb gp/cb group concurrently
come online, they might try to concurrently create the same
rcuog kthread. Fix this by using nocb gp CPU's spawn mutex to
provide mutual exclusion for the rcuog kthread creation code.

Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
kernel/rcu/tree.h
kernel/rcu/tree_nocb.h