[PATCH V6 1/4] block: use test_and_{clear|test}_bit to set/clear QUEUE_FLAG_QUIESCED

Johannes Thumshirn Johannes.Thumshirn at wdc.com
Mon Sep 14 08:46:27 EDT 2020


On 14/09/2020 04:08, Ming Lei wrote:
>  void blk_mq_unquiesce_queue(struct request_queue *q)
>  {
> -	blk_queue_flag_clear(QUEUE_FLAG_QUIESCED, q);
> +	blk_queue_flag_test_and_clear(QUEUE_FLAG_QUIESCED, q);

I don't really understand that change, why do we need the 
_test_and_clear version if we don't care about the result?




More information about the Linux-nvme mailing list