[PATCH] nvme-pci: fix potential I/O hang when CQ is full

Christoph Hellwig hch at lst.de
Tue Feb 10 07:57:12 PST 2026


We can't update the CQ head before consuming the CQEs, otherwise
the device can reuse them.  And devices must not discard completions
when there is no completion queue entry, nvme does allow SQs and CQs
to be smaller than the number of outstanding commands.



More information about the Linux-nvme mailing list