summaryrefslogtreecommitdiffstats
path: root/kernel/smpboot.c
diff options
context:
space:
mode:
authorYanfei Xu <yanfei.xu@windriver.com>2021-10-13 15:41:53 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-10-19 17:27:05 +0200
commit7cdacc5f52d68a9370f182c844b5b3e6cc975cc1 (patch)
treea31349ae579c5b8be359cee93360c70cd48f218e /kernel/smpboot.c
parentdocs: futex: Fix kernel-doc references (diff)
downloadlinux-7cdacc5f52d68a9370f182c844b5b3e6cc975cc1.tar.xz
linux-7cdacc5f52d68a9370f182c844b5b3e6cc975cc1.zip
locking/rwsem: Disable preemption for spinning region
The spinning region rwsem_spin_on_owner() should not be preempted, however the rwsem_down_write_slowpath() invokes it and don't disable preemption. Fix it by adding a pair of preempt_disable/enable(). Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com> [peterz: Fix CONFIG_RWSEM_SPIN_ON_OWNER=n build] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Waiman Long <longman@redhat.com> Link: https://lore.kernel.org/r/20211013134154.1085649-3-yanfei.xu@windriver.com
Diffstat (limited to 'kernel/smpboot.c')
0 files changed, 0 insertions, 0 deletions