blk-mq: Free tags in blk_mq_init_tags() upon error
authorHannes Reinecke <hare@suse.de>
Wed, 19 Aug 2020 15:20:21 +0000 (23:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 3 Sep 2020 21:20:46 +0000 (15:20 -0600)
commit4d063237b92a4e8d99350ad05492a45009a3c78c
tree7c8cb54444ab64989bd155212739ca7ba204dd27
parent655ac30094da0d724ce66161f15675d30da89cd8
blk-mq: Free tags in blk_mq_init_tags() upon error

Since the tags are allocated in blk_mq_init_tags(), it's better practice
to free in that same function upon error, rather than a callee which is to
init the bitmap tags (blk_mq_init_tags()).

[jpg: Split from an earlier patch with a new commit message]

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Garry <john.garry@huawei.com>
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c