Skip to content

Commit

Permalink
blk-mq: introduce blk_mq_quiesce_queue_nowait()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ming Lei authored and Jens Axboe committed Jun 18, 2017
1 parent 97e0120 commit 4f084b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/blk-mq.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ int blk_mq_reinit_tagset(struct blk_mq_tag_set *set);
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.
Expand Down

0 comments on commit 4f084b4

Please sign in to comment.