aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <[email protected]>2019-01-14 12:25:40 -0500
committerLinus Torvalds <[email protected]>2019-01-15 07:31:18 +1200
commit3719876809e745b9db5293d418600c194bbf5c23 (patch)
tree395e8ab29d48c025bae872b23830ad0c0fa47c03 /net/lapb/lapb_in.c
parentc962cb323ec260652cff9331e7bf3d606292db88 (diff)
sbitmap: Protect swap_lock from softirqs
The swap_lock used by sbitmap has a chain with locks taken from softirq, but the swap_lock is not protected from being preempted by softirqs. A chain exists of: sbq->ws[i].wait -> dispatch_wait_lock -> swap_lock Where the sbq->ws[i].wait lock can be taken from softirq context, which means all locks below it in the chain must also be protected from softirqs. Reported-by: Clark Williams <[email protected]> Fixes: 58ab5e32e6fd ("sbitmap: silence bogus lockdep IRQ warning") Fixes: ea86ea2cdced ("sbitmap: amortize cost of clearing bits") Cc: Jens Axboe <[email protected]> Cc: Ming Lei <[email protected]> Cc: Guenter Roeck <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions