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)
commit0f38d76646157357fcfa02f50575ea044830c494
tree61ae8a185c724e12fde0f88125641402553b639f
parentb90cfaed3789ecdc5580027fc91e3056bc6b3216
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