blk-mq: cleanup and rename __blk_mq_alloc_request
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 10:40:44 +0000 (12:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:03 +0000 (06:17 -0600)
commitb90cfaed3789ecdc5580027fc91e3056bc6b3216
treedae4568a3dcb4d34a91be44d66cb645c6bed8a7b
parent47c122e35d7e43b14129ceb9ed3a7e67599978fa
blk-mq: cleanup and rename __blk_mq_alloc_request

The newly added loop for the cached requests in __blk_mq_alloc_request
is a little too convoluted for my taste, so unwind it a bit.  Also
rename the function to __blk_mq_alloc_requests now that it can allocate
more than a single request.

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