[PATCH] nvme-multipath: flush every path that completed writes
Christoph Hellwig
hch at lst.de
Tue Dec 1 00:05:35 PST 2026
On Mon, Nov 30, 2026 at 01:14:38PM -0800, Keith Busch wrote:
> From: Keith Busch <kbusch at 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.
More information about the Linux-nvme
mailing list