summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon
diff options
context:
space:
mode:
authorMing Lei2019-01-15 04:59:52 +0100
committerLinus Torvalds2019-01-15 05:29:57 +0100
commitfe76fc6aaf538df27708ffa3e5d549a6c8e16142 (patch)
tree4fda8ebbcb82694899a476026684951e25d9b853 /drivers/net/ethernet/hisilicon
parentsbitmap: Protect swap_lock from softirqs (diff)
downloadkernel-qcow2-linux-fe76fc6aaf538df27708ffa3e5d549a6c8e16142.tar.gz
kernel-qcow2-linux-fe76fc6aaf538df27708ffa3e5d549a6c8e16142.tar.xz
kernel-qcow2-linux-fe76fc6aaf538df27708ffa3e5d549a6c8e16142.zip
sbitmap: Protect swap_lock from hardirq
Because we may call blk_mq_get_driver_tag() directly from blk_mq_dispatch_rq_list() without holding any lock, then HARDIRQ may come and the above DEADLOCK is triggered. Commit ab53dcfb3e7b ("sbitmap: Protect swap_lock from hardirq") tries to fix this issue by using 'spin_lock_bh', which isn't enough because we complete request from hardirq context direclty in case of multiqueue. Cc: Clark Williams <williams@redhat.com> Fixes: ab53dcfb3e7b ("sbitmap: Protect swap_lock from hardirq") Cc: Jens Axboe <axboe@kernel.dk> Cc: Ming Lei <ming.lei@redhat.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/ethernet/hisilicon')
0 files changed, 0 insertions, 0 deletions