]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
blk-mq: Refactor and rename blk_mq_free_map_and_{requests->rqs}()
authorJohn Garry <john.garry@huawei.com>
Tue, 5 Oct 2021 10:23:36 +0000 (18:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:03 +0000 (06:17 -0600)
commit645db34e50501aac141713fb47a315e5202ff890
tree1efe07a715d895cb83c78adbd77d0f91a3a41597
parent63064be150e4b1ba1e4af594ef5aa81adf21a52d
blk-mq: Refactor and rename blk_mq_free_map_and_{requests->rqs}()

Refactor blk_mq_free_map_and_requests() such that it can be used at many
sites at which the tag map and rqs are freed.

Also rename to blk_mq_free_map_and_rqs(), which is shorter and matches the
alloc equivalent.

Suggested-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/1633429419-228500-12-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
block/blk-mq.c
block/blk-mq.h