• M
    block: introduce 'blk_mq_ctx' parameter to blk_get_flush_queue · e97c293c
    Ming Lei 提交于
    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: NMing Lei <ming.lei@canonical.com>
    Signed-off-by: NJens Axboe <axboe@fb.com>
    e97c293c
blk.h 8.4 KB