]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: simplify reallocation of hw ctxs a bit
authorMing Lei <ming.lei@redhat.com>
Tue, 8 Mar 2022 07:32:15 +0000 (15:32 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Mar 2022 00:57:19 +0000 (17:57 -0700)
commit66e408a0d1b489826c60e5c73bd507ddb419851c
tree046d65babe84bf33265dbd267687732d17074039
parent04148eac8cf3dd2cdf6dc31ee9b51591982d6f04
blk-mq: simplify reallocation of hw ctxs a bit

blk_mq_alloc_and_init_hctx() has already taken reuse into account, so
no need to do it outside, then we can simplify blk_mq_realloc_hw_ctxs().

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220308073219.91173-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c