]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Convert rcu_state.ofl_lock to raw_spinlock_t
authorMike Galbraith <efault@gmx.de>
Wed, 15 Aug 2018 16:05:29 +0000 (09:05 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Aug 2018 23:03:54 +0000 (16:03 -0700)
commit894d45bbf7e7569ec2aa845155801fd503b5f1bf
treeee371190b7bb7b90812b24360d839eb71681d470
parent8d8a9d0e7eda9feeee4af7be31932e14b512d3ad
rcu: Convert rcu_state.ofl_lock to raw_spinlock_t

1e64b15a4b10 ("rcu: Fix grace-period hangs due to race with CPU offline")
added spinlock_t ofl_lock to the rcu_state structure, then takes it with
preemption disabled during CPU offline, which gives the -rt patchset's
sleeping spinlock heartburn.

This commit therefore converts ->ofl_lock to raw_spinlock_t.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
kernel/rcu/tree.c
kernel/rcu/tree.h