Skip to content

Fix a regression in 6.13 kernel

Maurizio Lombardi linux-nvme 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1nvme-pci: do not call nvme_write_sq_db() if the commands list is emptydrivers/nvme/host/pci.c+3 -02 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] Fix a regression in 6.13 kernel

Some time ago Mikhail Gavrilov reported a regression against kernel 6.13 introduced by commit beadf0088501d9dcf2 ("nvme-pci: reverse request order in nvme_queue_rqs")

https://lore.kernel.org/linux-nvme/CABXGCsMcxu3pCF8jYPeqF_jN34saBwc8Fci+c-Dg2Lh7rqvuFQ@mail.gmail.com/

I was not able to reproduce the bug, but Mikhail reported that this patch fixed it for him:
https://lore.kernel.org/linux-nvme/CABXGCsMd_xv8jPDF_sFYhwd8GtANZ23nbaSJuCxQRO7cjPtgWg@mail.gmail.com/

I think the problem here is that nvme_write_sq_db() ends up being called even when the rqlist is empty and this couldn't happen before the changes introduced by beadf0088501d9dcf2

Maurizio Lombardi (1):
nvme-pci: do not call nvme_write_sq_db() if the commands list is empty

 drivers/nvme/host/pci.c | 3 +++
 1 file changed, 3 insertions(+)
Signature · 1 line
2.43.5