[PATCH 1/1] nvme-pci: do not call nvme_write_sq_db() if the commands list is empty
Keith Busch
kbusch at kernel.org
Mon Mar 31 09:45:49 PDT 2025
On Mon, Mar 31, 2025 at 06:28:59PM +0200, Maurizio Lombardi wrote:
> nvme_submit_cmds() should check the rqlist
> before calling nvme_write_sq_db();
> if the list is empty, it must return immediately.
I believe that could cause the driver to write the same value into a sq
doorbell twice, which is a spec violation.
Thanks, applied.
More information about the Linux-nvme
mailing list