From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033430AbdD0Tny (ORCPT ); Thu, 27 Apr 2017 15:43:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967863AbdD0Tnn (ORCPT ); Thu, 27 Apr 2017 15:43:43 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0375767EA6 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jmoyer@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0375767EA6 From: Jeff Moyer To: Dan Williams Cc: "linux-nvdimm\@lists.01.org" , Masayoshi Mizuma , Linux ACPI , "linux-kernel\@vger.kernel.org" Subject: Re: [PATCH v3] libnvdimm, region: sysfs trigger for nvdimm_flush() References: <149307780135.7155.11108531648914675756.stgit@dwillia2-desk3.amr.corp.intel.com> <149315140303.23340.14688142799059150805.stgit@dwillia2-desk3.amr.corp.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: Thu, 27 Apr 2017 15:43:41 -0400 In-Reply-To: (Dan Williams's message of "Thu, 27 Apr 2017 12:21:54 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 27 Apr 2017 19:43:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams writes: > We also still seem to need a discovery mechanism as I've had questions > about "how do I tell if my system supports deep flush?". That's where > sysfs is much better than an ioctl. The need for deep flush discovery > tips the scales, at least for me, to also do deep flush triggering > through the same interface. Return ENXIO or EOPNOTSUPP from the ioctl when it isn't supported? Cheers, Jeff