From: Christoph Hellwig <hch@lst.de>
To: Keith Busch <kbusch@meta.com>
Cc: linux-nvme@lists.infradead.org, hch@lst.de,
erwanaliasr1@gmail.com, Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH] nvme-multipath: flush every path that completed writes
Date: Tue, 1 Dec 2026 09:05:35 +0100 [thread overview]
Message-ID: <20261201080535.GA26695@lst.de> (raw)
In-Reply-To: <20261130211438.556153-1-kbusch@meta.com>
On Mon, Nov 30, 2026 at 01:14:38PM -0800, Keith Busch wrote:
> From: Keith Busch <kbusch@kernel.org>
>
> The nvme specification says a flush commits data only for commands
> completed by the controller, but the multipath head sends the flush down
> a single path. Writes completed through another controller path are not
> made durable.
>
> Track which paths completed writes, and send a flush to each of them
> along with the original.
I think the spec is wrong here, and we need to escalate this to the
technical working group.
The cache must be shared for all controllers as reads needs to be served
for it, so only flushing it for writes that came through the controller
is nonsensical. This is also how all software implementations I've seen
do it, and I've never seen a hardware device implementing multiple
controllers and a volatile write cache so far.
prev parent reply other threads:[~2026-12-01 8:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 21:14 [PATCH] nvme-multipath: flush every path that completed writes Keith Busch
2026-11-30 21:38 ` sashiko-bot
2026-12-01 8:05 ` Christoph Hellwig [this message]
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=20261201080535.GA26695@lst.de \
--to=hch@lst.de \
--cc=erwanaliasr1@gmail.com \
--cc=kbusch@kernel.org \
--cc=kbusch@meta.com \
--cc=linux-nvme@lists.infradead.org \
/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