[PATCH V6 2/4] blk-mq: implement queue quiesce via percpu_ref for BLK_MQ_F_BLOCKING

Johannes Thumshirn Johannes.Thumshirn at wdc.com
Mon Sep 14 08:47:20 EDT 2020


On 14/09/2020 04:09, Ming Lei wrote:
>  void blk_mq_unquiesce_queue(struct request_queue *q)
>  {
> -	blk_queue_flag_test_and_clear(QUEUE_FLAG_QUIESCED, q);
> +	if (blk_queue_flag_test_and_clear(QUEUE_FLAG_QUIESCED, q)) {
> +		if (q->tag_set->flags & BLK_MQ_F_BLOCKING)
> +			percpu_ref_resurrect(&q->dispatch_counter);
> +	}

Ah ok, here we do.



More information about the Linux-nvme mailing list