[PATCH] blk-mq: Explicitly zero-init blk_mq_tags.active_queues

From: John Garry
Date: Tue May 26 2020 - 06:49:06 EST


As is good practice, explicitly zero-init atomic_t type
blk_mq_tags.active_queues.

Signed-off-by: John Garry <john.garry@xxxxxxxxxx>

diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index 586c9d6e904a..cbbd0af9f3b0 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -469,6 +469,7 @@ struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags,

tags->nr_tags = total_tags;
tags->nr_reserved_tags = reserved_tags;
+ atomic_set(&tags->active_queues, 0);

return blk_mq_init_bitmap_tags(tags, node, alloc_policy);
}
--
2.16.4