summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYanfei Xu <yanfei.xu@windriver.com>2021-10-13 16:41:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 21:16:16 +0300
commit562d350a88097ab7c314dbf90b7bfc07704284f2 (patch)
tree5d4e15e049fa20cd41944b1337360fc21c78ca81 /lib
parente5d5e53171506141ff598187ea0c26b4122a4a4d (diff)
downloadlinux-562d350a88097ab7c314dbf90b7bfc07704284f2.tar.xz
locking/rwsem: Disable preemption for spinning region
[ Upstream commit 7cdacc5f52d68a9370f182c844b5b3e6cc975cc1 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions