]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: prevent timer handler running on a different CPU where started
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 1 Jun 2015 23:35:09 +0000 (08:35 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 02:09:03 +0000 (20:09 -0600)
commit7147a943c87e05822f7ecfffde408d718c5f6f53
treed9c7c2de841bc87fb5f43a12f89052f649f22fc4
parent7eeec4a50220a02e42d968e4b51fda15a373c3b7
null_blk: prevent timer handler running on a different CPU where started

When irqmode=2 (IRQ completion handler is timer), timer handler should
be called on the same CPU where the timer has been started.

Since completion_queues are per-cpu and the completion handler only
touches completion_queue for local CPU, we need to prevent the handler
from running on a different CPU where the timer has been started.
Otherwise, the IO cannot be completed until another completion handler
is executed on that CPU.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/null_blk.c