]> git.baikalelectronics.ru Git - kernel.git/commit
block: introduce 'blk_mq_ctx' parameter to blk_get_flush_queue
authorMing Lei <ming.lei@canonical.com>
Thu, 25 Sep 2014 15:23:46 +0000 (23:23 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 25 Sep 2014 21:22:44 +0000 (15:22 -0600)
commitd0d8d54f456beaa50224ed33e0adbda442b4924f
tree77e1bef4a3835fdbfe5975c78b3d0ba53f266459
parent59d0e4e07a32ef41a187cd2f008ccd0abc3078b8
block: introduce 'blk_mq_ctx' parameter to blk_get_flush_queue

This patch adds 'blk_mq_ctx' parameter to blk_get_flush_queue(),
so that this function can find the corresponding blk_flush_queue
bound with current mq context since the flush queue will become
per hw-queue.

For legacy queue, the parameter can be simply 'NULL'.

For multiqueue case, the parameter should be set as the context
from which the related request is originated. With this context
info, the hw queue and related flush queue can be found easily.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-flush.c
block/blk-mq.c
block/blk.h