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

Hannes Reinecke hare at suse.de
Fri Sep 11 02:03:23 EDT 2020


On 9/11/20 4:41 AM, Ming Lei wrote:
> Prepare for replacing srcu with percpu-refcount for implementing queue
> quiesce.
> 
> The following patch needs to avoid duplicated quiesce action for
> BLK_MQ_F_BLOCKING, so use test_and_{clear|test}_bit to set/clear
> QUEUE_FLAG_QUIESCED.
> 
> Signed-off-by: Ming Lei <ming.lei at redhat.com>
> Cc: Sagi Grimberg <sagi at grimberg.me>
> Cc: Bart Van Assche <bvanassche at acm.org>
> Cc: Johannes Thumshirn <Johannes.Thumshirn at wdc.com>
> Cc: Chao Leng <lengchao at huawei.com>
> ---
>   block/blk-core.c | 13 +++++++++++++
>   block/blk-mq.c   | 11 ++++++++---
>   block/blk.h      |  2 ++
>   3 files changed, 23 insertions(+), 3 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare at suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



More information about the Linux-nvme mailing list