blk-mq: special case cached requests less
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Jan 2024 09:26:58 +0000 (10:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Feb 2024 17:06:53 +0000 (10:06 -0700)
commit72e84e909eb5354e1e405c968dfdc4dcc23d41cc
tree9081ada23cb175ac725495cb63b731f77e087a9c
parent337e89feb7c29043dacd851b6ac28542a9a8aacf
blk-mq: special case cached requests less

Share the main merge / split / integrity preparation code between the
cached request vs newly allocated request cases, and add comments
explaining the cached request handling.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Tested-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240124092658.2258309-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c