summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-11-13 16:20:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-25 10:48:06 +0200
commit7e2d22493939e10d9e9c052ae46088001d42ae3d (patch)
tree4dc1cbae03bfc7c345ad3290bc98f728dfcca6f9 /drivers/nvme
parent2ad0f19a4e9955703ac5c4e945f0bcdba0098794 (diff)
downloadlinux-7e2d22493939e10d9e9c052ae46088001d42ae3d.tar.gz
linux-7e2d22493939e10d9e9c052ae46088001d42ae3d.tar.bz2
linux-7e2d22493939e10d9e9c052ae46088001d42ae3d.zip
block: don't reorder requests in blk_add_rq_to_plug
commit e70c301faece15b618e54b613b1fd6ece3dd05b4 upstream. Add requests to the tail of the list instead of the front so that they are queued up in submission order. Remove the re-reordering in blk_mq_dispatch_plug_list, virtio_queue_rqs and nvme_queue_rqs now that the list is ordered as expected. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20241113152050.157179-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index e943c1be0fca..e70618e8d35e 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1026,7 +1026,7 @@ static void nvme_queue_rqs(struct rq_list *rqlist)
nvmeq = req->mq_hctx->driver_data;
if (nvme_prep_rq_batch(nvmeq, req))
- rq_list_add_head(&submit_list, req); /* reverse order */
+ rq_list_add_tail(&submit_list, req);
else
rq_list_add_tail(&requeue_list, req);
}