block: split request allocation components into helpers
authorJens Axboe <axboe@kernel.dk>
Wed, 3 Nov 2021 11:52:45 +0000 (05:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Nov 2021 18:50:51 +0000 (12:50 -0600)
commit71539717c10521114403d27e171c9cbe35dcd900
tree51c7e0610cde2003e06da01de2f59fe0bc1a75b7
parentc5fc7b93173661336b9cc4e32fd5082a95e12b94
block: split request allocation components into helpers

This is in preparation for a fix, but serves as a cleanup as well moving
the cached vs regular alloc logic out of blk_mq_submit_bio().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c