Received: by 10.223.185.116 with SMTP id b49csp2739734wrg; Mon, 12 Feb 2018 15:11:08 -0800 (PST) X-Google-Smtp-Source: AH8x224VOyM+j9bvSxG6j/WbWoC84YOM0flaXi7gS/e8JJh2MKsirTukL6r/uurit+5yPuMkGpJu X-Received: by 2002:a17:902:3084:: with SMTP id v4-v6mr12322436plb.131.1518477068291; Mon, 12 Feb 2018 15:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518477068; cv=none; d=google.com; s=arc-20160816; b=q5SnQIIls/TdfZv9g5WQ0sEBzw6GpSxIq5UDZUu1ioq+bDwgHwLh1KNagXsPmYVjAr fteikYr1ducCmGNCjIroV2SCR6RGFra1RG3fGaC8BOvMHlU3GBx41UkZpZO2DX4BLqMM xQaYDaMm1CmL53U+DIiJMHBPcrLBn9XWFOkwXUSzYMFchYQS55oQ6XsGWGgMAOUKJpwV IBsdbouOec/i/7jVJeKOmKd8/x/HZGGxpl3Ugt/ER1Mh17dkw1CEqWdP5Jz1Dqn5M22Z q+iIZPK8iacEDCCsBQeqB9Cq27jx85egWW9XzyI3ZofQyBNa9+KDxMv9473PtHiQ8AgQ jUZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=nYUxIg7PKAP7lPhZ1yfwyiYFlPZZeoGqSvdzSb4NpuA=; b=ZRdgs9fO+Esxn6UZQNK51NrmqlQOuOXMpiJzzTtcXluwr/dqInCsmN/aiodfX251oM MaTebk2CwpEfAKpGxVrrzSP+kFAOeQLXXJmydeLFJZch+/H8D0I4k6zIXkfO51DzhY4s gGoFWYZx9EXhcT2ndE39wAgyQuJSzW8+lNEfgwGrpjwjiuauD4ZcwsoZ1E3jRs0Z0izW lWFbuv1xDvXstWLHQaPZ21EuxcjZA5w7hucnQ1ricd6m7PvOeq+B6ZvGlauZxLrTBNv5 gcxrcmcmmKlYUNizE0QUqhBheTjanouUC0/H5m/NB2SP6EKgxaaHSrYg9a05++dSy78x kQ8Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4-v6si645083plb.648.2018.02.12.15.10.52; Mon, 12 Feb 2018 15:11:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932581AbeBLXI5 (ORCPT + 99 others); Mon, 12 Feb 2018 18:08:57 -0500 Received: from mga14.intel.com ([192.55.52.115]:21433 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932231AbeBLXI4 (ORCPT ); Mon, 12 Feb 2018 18:08:56 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2018 15:08:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,504,1511856000"; d="scan'208";a="17929948" Received: from theros.lm.intel.com (HELO linux.intel.com) ([10.232.112.164]) by orsmga006.jf.intel.com with ESMTP; 12 Feb 2018 15:08:55 -0800 Date: Mon, 12 Feb 2018 16:08:54 -0700 From: Ross Zwisler To: Dan Williams Cc: Jeff Moyer , "Zwisler, Ross" , Linux Kernel Mailing List , linux-nvdimm@lists.01.org Subject: Re: [PATCH v2] libnvdimm: re-enable deep flush for pmem devices Message-ID: <20180212230854.GB19832@linux.intel.com> References: <151847194459.58291.11339638808076622981.stgit@djiang5-desk3.ch.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 03:05:10PM -0800, Dan Williams wrote: > 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: > > > 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 Plus Jeff's reviewed-by.