From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1817A606A31A for ; Tue, 1 Dec 2026 08:05:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=iCdhb/Ps DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=tHaAhQS/rpY4pTtshCbWHFgPlZV1ki3E+pC1lTg1eLE=; b=iCdhb/Ps3FzueUQ8pTe80Va/vP UKKPpMbyhCAtety6T+haUAnCAdBrefnmXUELh+Exhzwv3RHllwmfFT/wbx1BEjsZXmea26ub6qv6a 9wA78WZrlSJuC3a4BnEGsvxAkQSzpJQLfOjzFulVOM02IO72wqEc1zxaTk5jkXZbyvEovzxFIw7l5 M0naRgru2C/yLk0al0JUuhqy18kHdnondAGc91h+hwQFU7elABqiabn4NVJdBMUJgmpw3WqDY0thh vrWxXbJkyoEMkCF8Y2MvztpvG1EiJ0pujMxJfhOkUTTCoA/U2XfbBoGrPoZ/c8bEz3JDQahamqj81 hfx3JjxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYIrv-00000006xxV-0meY; Tue, 01 Dec 2026 08:05:43 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYIrs-00000006xwj-0Mgp for linux-nvme@lists.infradead.org; Tue, 01 Dec 2026 08:05:41 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id D719A68AFE; Tue, 1 Dec 2026 09:05:35 +0100 (CET) Date: Tue, 1 Dec 2026 09:05:35 +0100 From: Christoph Hellwig To: Keith Busch Cc: linux-nvme@lists.infradead.org, hch@lst.de, erwanaliasr1@gmail.com, Keith Busch Subject: Re: [PATCH] nvme-multipath: flush every path that completed writes Message-ID: <20261201080535.GA26695@lst.de> References: <20261130211438.556153-1-kbusch@meta.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130211438.556153-1-kbusch@meta.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_000540_448255_D5BDC411 X-CRM114-Status: GOOD ( 14.96 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 01:14:38PM -0800, Keith Busch wrote: > From: Keith Busch > > 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.