diff options
| author | Christoph Hellwig <hch@lst.de> | 2024-11-13 16:20:45 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-25 10:48:06 +0200 |
| commit | 7e2d22493939e10d9e9c052ae46088001d42ae3d (patch) | |
| tree | 4dc1cbae03bfc7c345ad3290bc98f728dfcca6f9 /drivers/block | |
| parent | 2ad0f19a4e9955703ac5c4e945f0bcdba0098794 (diff) | |
| download | linux-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/block')
| -rw-r--r-- | drivers/block/virtio_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 2069bf9701f5..fd6c565f8a50 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -514,7 +514,7 @@ static void virtio_queue_rqs(struct rq_list *rqlist) vq = this_vq; if (virtblk_prep_rq_batch(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); } |
