Received: by 10.223.185.116 with SMTP id b49csp3624556wrg; Tue, 13 Feb 2018 05:19:02 -0800 (PST) X-Google-Smtp-Source: AH8x224s5uudToBcEbM6nctUzmWuBWnH4SzNAnxfEjp4da94TcYfvZXXYi7KRdWDmwPkiBWpeCkg X-Received: by 2002:a17:902:968e:: with SMTP id n14-v6mr1123983plp.21.1518527942716; Tue, 13 Feb 2018 05:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518527942; cv=none; d=google.com; s=arc-20160816; b=gO8MSp0pnVcNY/dNaRa4yKaFgAOv77xqVRaSJuaTbyIt1YNFr31tCLaU266lDr0ym+ DSMYfbcVNyyncgqFxcNLYuCkOmm0K+cRNbmUpT2/TQ1hJQ+yNK1lzGqwF+x+KMuAbQH7 yTryfTSvntdaJeaCxBSPwQyWTcvZi+VcTX1mzLKUnIlrDOpsRyzkAhig/5rptJ4/XcLG POQjHsi3N9GxYlUbRi+9EbSlVz2niM2bvDzhbjRxQEQJEeSS3dzgdG/KnlzztlZpknop o3+lShOlnlkVRvBPUVi9ez+l2vEMxHP0FqXCUDch6qP4nYmPqNYUxTExcRdpjIIHidw6 Yzkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=T6+nghbR2dbzDxmTz5yn1SF9G662lBXL3pqEh8ClS6o=; b=LnEP+zutTL1/Gr2refNsDsy0tqluqj65lQhHsLjOLwt5zoVgGKrHXsau6D9TaNhaKP ErRLwagv1jU24Mgwrf/3eZeFax76BRrBiLeDoQ6Lh0sem9dWIPqpOwUhUcLYgwMNQdvf YqD8baRGIYumjK/quiS/+lzcfQRbrBANlcVYvuUVSfFNQVy5uFC1DW9Eyz+I6GTuf9Rp dA9RJS3HAe3j9hdhG3vozkrBz8NchJxGiPDNR4j1h5bT909xDw6C1T2uViSVf1t9KrxE oBqrkjMYTkDJANIX5uOwZUB8oqu7bPrOxYWsJukogm7emFDcQucPo+i2AnsD5G8TDjhb 2FqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si1329220pgc.506.2018.02.13.05.18.48; Tue, 13 Feb 2018 05:19:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935260AbeBMNRl (ORCPT + 99 others); Tue, 13 Feb 2018 08:17:41 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55072 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935175AbeBMNRk (ORCPT ); Tue, 13 Feb 2018 08:17:40 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B87AC40FB646; Tue, 13 Feb 2018 13:17:39 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 52F73AEE09; Tue, 13 Feb 2018 13:17:39 +0000 (UTC) From: Jeff Moyer To: Dan Williams Cc: Dave Jiang , "Zwisler\, Ross" , Linux Kernel Mailing List , linux-nvdimm@lists.01.org Subject: Re: [PATCH v2] libnvdimm: re-enable deep flush for pmem devices References: <151847194459.58291.11339638808076622981.stgit@djiang5-desk3.ch.intel.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Tue, 13 Feb 2018 08:17:38 -0500 In-Reply-To: (Dan Williams's message of "Mon, 12 Feb 2018 15:05:10 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 13 Feb 2018 13:17:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 13 Feb 2018 13:17:39 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jmoyer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams writes: > On Mon, Feb 12, 2018 at 2:53 PM, Jeff Moyer wrote: >> Dave Jiang writes: >> >>> Re-enable deep flush so that users always have a way to be sure that a write >>> does make it all the way out to the NVDIMM. The PMEM driver writes always >>> make it "all the way to the NVDIMM", and it relies on the ADR mechanism to >>> flush the write buffers on power failure. Deep flush is there to explicitly >>> flush those write buffers to protect against (rare) ADR failure. >>> This change prevents a regression in deep flush behavior so that applications >>> can continue to depend on fsync() as a mechanism to trigger deep flush in the >>> filesystem-dax case. >> >> That's still very confusing text. Specifically, the part where you say >> that pmem driver writes always make it to the DIMM. I think the >> changelog could start with "Deep flush is there to explicitly flush >> write buffers...." Anyway, the fix looks right to me. > > I ended up changing the commit message to this, let me know if it reads better: Thanks. It's still unclear to me what the text, "The PMEM driver writes always arrive at the NVDIMM" means. However, it's good enough. Thanks! Jeff > > libnvdimm: re-enable deep flush for pmem devices via fsync() > > Re-enable deep flush so that users always have a way to be sure that a > write makes it all the way out to media. The PMEM driver writes always > arrive at the NVDIMM, and it relies on the ADR (Asynchronous DRAM > Refresh) mechanism to flush the write buffers on power failure. Deep > flush is there to explicitly flush those write buffers to protect > against (rare) ADR failure. This change prevents a regression in deep > flush behavior so that applications can continue to depend on fsync() as > a mechanism to trigger deep flush in the filesystem-DAX case. > > Fixes: 06e8ccdab15f4 ("acpi: nfit: Add support for detect platform > CPU cache...") > Signed-off-by: Dave Jiang > Signed-off-by: Dan Williams