diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-06-06 23:22:02 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-18 14:20:04 -0600 |
commit | 4f084b41a0c04a69067be98a210e6b50969f9945 (patch) | |
tree | 995fb37133f8198cab3df1ae66bbc729a1a79cd8 /include/linux | |
parent | 97e0120990f4a7037f72c0e115e5c7f514025738 (diff) | |
download | op-kernel-dev-4f084b41a0c04a69067be98a210e6b50969f9945.zip op-kernel-dev-4f084b41a0c04a69067be98a210e6b50969f9945.tar.gz |
blk-mq: introduce blk_mq_quiesce_queue_nowait()
This patch introduces blk_mq_quiesce_queue_nowait() so
that we can workaround mpt3sas for quiescing its queue.
Once mpt3sas is fixed, we can remove this helper.
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blk-mq.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 99348ad..78a8b64 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -263,6 +263,14 @@ int blk_mq_map_queues(struct blk_mq_tag_set *set); void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues); /* + * FIXME: this helper is just for working around mpt3sas. + */ +static inline void blk_mq_quiesce_queue_nowait(struct request_queue *q) +{ + blk_mq_stop_hw_queues(q); +} + +/* * Driver command data is immediately after the request. So subtract request * size to get back to the original request, add request size to get the PDU. */ |