]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
blk-mq: revert raw locks, post pone notifier to POST_DEAD
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sat, 3 May 2014 09:00:29 +0000 (11:00 +0200)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:47:30 +0000 (09:47 +0200)
commit0717d057e316711184a35a95bae7c758c6b03558
tree4252b85fb23e10de7bdaefe4c4a667f5508137ec
parentc2676a65d2a4145c931dcfb45bc136e9498a16dd
blk-mq: revert raw locks, post pone notifier to POST_DEAD

The blk_mq_cpu_notify_lock should be raw because some CPU down levels
are called with interrupts off. The notifier itself calls currently one
function that is blk_mq_hctx_notify().
That function acquires the ctx->lock lock which is sleeping and I would
prefer to keep it that way. That function only moves IO-requests from
the CPU that is going offline to another CPU and it is currently the
only one. Therefore I revert the list lock back to sleeping spinlocks
and let the notifier run at POST_DEAD time.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
block/blk-mq-cpu.c
block/blk-mq.c