From: Christoph Hellwig <hch@lst.de>
To: Junnan Zhang <zhangjn_dev@163.com>
Cc: Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
Shouxin Sun <sunshx@chinatelecom.cn>,
Junnan Zhang <zhangjn11@chinatelecom.cn>,
Qiliang Yuan <yuanql9@chinatelecom.cn>,
Zhaolong Zhang <zhangzl68@chinatelecom.cn>,
Yaxuan Liu <liuyx92@chinatelecom.cn>,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nvme-pci: fix potential I/O hang when CQ is full
Date: Tue, 10 Feb 2026 16:57:12 +0100 [thread overview]
Message-ID: <20260210155712.GA3653@lst.de> (raw)
In-Reply-To: <20260209121020.119853-1-zhangjn_dev@163.com>
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.
next prev parent reply other threads:[~2026-02-10 15:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 12:10 [PATCH] nvme-pci: fix potential I/O hang when CQ is full Junnan Zhang
2026-02-10 15:57 ` Christoph Hellwig [this message]
2026-02-11 9:47 ` Junnan Zhang
2026-02-11 12:27 ` Keith Busch
2026-02-12 9:42 ` Junnan Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260210155712.GA3653@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=liuyx92@chinatelecom.cn \
--cc=sagi@grimberg.me \
--cc=sunshx@chinatelecom.cn \
--cc=yuanql9@chinatelecom.cn \
--cc=zhangjn11@chinatelecom.cn \
--cc=zhangjn_dev@163.com \
--cc=zhangzl68@chinatelecom.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox