]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: use async queue restart helper
authorJens Axboe <axboe@fb.com>
Mon, 28 Dec 2015 20:02:47 +0000 (13:02 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 28 Dec 2015 20:07:09 +0000 (13:07 -0700)
commitc667e71746399fb03d5d05d4a86fb1ce470bf73f
tree8f26e4e6c720eb7b9b707f3e73b6914fc4e22720
parent345c3024b357fc874bdf1165f4d7b08b219fca81
null_blk: use async queue restart helper

If null_blk is run in NULL_IRQ_TIMER mode and with queue_mode NULL_Q_RQ,
we need to restart the queue from the hrtimer interrupt. We can't
directly invoke the request_fn from that context, so punt the queue run
to async kblockd context.

Tested-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/null_blk.c