]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc124dd384007aa0564763d0427110bc80a3174bc
treedae4568a3dcb4d34a91be44d66cb645c6bed8a7b
parentd19f834377ed998ec9e6866641922c07f4492e83
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