]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: cleanup blk_mq_submit_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 10:40:45 +0000 (12:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:03 +0000 (06:17 -0600)
commitd272b5feda1b6010ee31e29e8594361fc51caa77
tree61ae8a185c724e12fde0f88125641402553b639f
parentc124dd384007aa0564763d0427110bc80a3174bc
blk-mq: cleanup blk_mq_submit_bio

Move the blk_mq_alloc_data stack allocation only into the branch
that actually needs it, and use rq->mq_hctx instead of data.hctx
to refer to the hctx.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211012104045.658051-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c