]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Use normal rcu
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Mar 2019 16:55:47 +0000 (17:55 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 8 Apr 2019 19:37:43 +0000 (12:37 -0700)
commite88f5d4989018f3a10503d61e03ec335fff61870
tree720321f9bb1ea925dd33e2c7536fb892100dc4df
parentb60572e7455a1d492bcfa63bc4eec2c8aca8f86c
workqueue: Use normal rcu

There is no need for sched_rcu. The undocumented reason why sched_rcu
is used is to avoid a few explicit rcu_read_lock()/unlock() pairs by
the fact that sched_rcu reader side critical sections are also protected
by preempt or irq disabled regions.

Replace rcu_read_lock_sched with rcu_read_lock and acquire the RCU lock
where it is not yet explicit acquired. Replace local_irq_disable() with
rcu_read_lock(). Update asserts.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[bigeasy: mangle changelog a little]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c