Message ID | 1590489900-121753-1-git-send-email-john.garry@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | blk-mq: Explicitly zero-init blk_mq_tags.active_queues | expand |
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); }
As is good practice, explicitly zero-init atomic_t type blk_mq_tags.active_queues. Signed-off-by: John Garry <john.garry@huawei.com>