]> www.infradead.org Git - users/dwmw2/linux.git/commit
block: don't reorder requests in blk_mq_add_to_batch
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Nov 2024 15:20:46 +0000 (16:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2024 19:04:58 +0000 (12:04 -0700)
commit00e8d290b55f2fa5c5a0500b4dccf9e090650447
treeb100d80c6c93497a9dfa0563317f976c20f02e86
parente70c301faece15b618e54b613b1fd6ece3dd05b4
block: don't reorder requests in blk_mq_add_to_batch

LIFO ordering for batched completions is a bit unexpected and also
defeats some merging optimizations in e.g. the XFS buffered write
code.  Now that we can easily add the request to the tail of the list
do that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241113152050.157179-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-mq.h