Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f084b41 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

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: default avatarBart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 97e01209
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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.