diff options
author | Ming Lei <ming.lei@canonical.com> | 2014-09-25 17:23:46 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-25 23:22:44 +0200 |
commit | e97c293cdf77263abdc021de280516e0017afc84 (patch) | |
tree | 77e1bef4a3835fdbfe5975c78b3d0ba53f266459 /block/blk-exec.c | |
parent | block: flush: avoid to figure out flush queue unnecessarily (diff) | |
download | linux-e97c293cdf77263abdc021de280516e0017afc84.tar.xz linux-e97c293cdf77263abdc021de280516e0017afc84.zip |
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>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions