Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753638AbdDNRaD (ORCPT ); Fri, 14 Apr 2017 13:30:03 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:34372 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbdDNRaB (ORCPT ); Fri, 14 Apr 2017 13:30:01 -0400 MIME-Version: 1.0 In-Reply-To: <149218911796.3926.17292323458849061393.stgit@dwillia2-desk3.amr.corp.intel.com> References: <149218909065.3926.1234846095650907678.stgit@dwillia2-desk3.amr.corp.intel.com> <149218911796.3926.17292323458849061393.stgit@dwillia2-desk3.amr.corp.intel.com> From: Dan Williams Date: Fri, 14 Apr 2017 10:30:00 -0700 Message-ID: Subject: Re: [PATCH 5/5] acpi, nfit: limit ->flush_probe() to initialization work To: "linux-nvdimm@lists.01.org" Cc: Linux ACPI , "linux-kernel@vger.kernel.org" , Vishal L Verma Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1540 Lines: 34 On Fri, Apr 14, 2017 at 9:58 AM, Dan Williams wrote: > The nvdimm probe flushing mechanism gives userspace a sync point where > it knows all asynchronous driver probe sequences have completed. > However, it need not wait for other asynchronous actions, like > on-demand address-range-scrub. Track the init work separately from other > work in the workqueue, and only flush the former. > > Signed-off-by: Dan Williams > --- > drivers/acpi/nfit/core.c | 13 ++++++++++--- > drivers/acpi/nfit/nfit.h | 1 + > 2 files changed, 11 insertions(+), 3 deletions(-) > > diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c > index 06738df477db..17cac9d369e0 100644 > --- a/drivers/acpi/nfit/core.c > +++ b/drivers/acpi/nfit/core.c > @@ -738,7 +738,7 @@ static void nfit_mem_init_bdw(struct acpi_nfit_desc *acpi_desc, > } > } > > -static int nfit_mem_dcr_init(struct acpi_nfit_desc *acpi_desc, > +static int __nfit_mem_init(struct acpi_nfit_desc *acpi_desc, > struct acpi_nfit_system_address *spa) > { > struct nfit_mem *nfit_mem, *found; > @@ -898,7 +898,7 @@ static int nfit_mem_init(struct acpi_nfit_desc *acpi_desc) > * BDWs are optional. > */ > list_for_each_entry(nfit_spa, &acpi_desc->spas, list) { > - rc = nfit_mem_dcr_init(acpi_desc, nfit_spa->spa); > + rc = __nfit_mem_init(acpi_desc, nfit_spa->spa); Whoops, this function rename should have been folded into the previous patch.