diff options
author | Yanfei Xu <[email protected]> | 2021-10-13 21:41:53 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-10-19 17:27:05 +0200 |
commit | 7cdacc5f52d68a9370f182c844b5b3e6cc975cc1 (patch) | |
tree | a31349ae579c5b8be359cee93360c70cd48f218e /net/lapb/lapb_timer.c | |
parent | bc67f1c454fbc79b148f0b47227929da82f4b026 (diff) |
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 <[email protected]>
[peterz: Fix CONFIG_RWSEM_SPIN_ON_OWNER=n build]
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Waiman Long <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions