Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp64960imm; Thu, 31 May 2018 18:40:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKubHWERwYEH0pngEkEOA15Y5r40/I85Mt+q36clUnKE6aumjwICTFNIB5zENNLcNzEXyhK X-Received: by 2002:a62:8a5b:: with SMTP id y88-v6mr8933467pfd.103.1527817201566; Thu, 31 May 2018 18:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527817201; cv=none; d=google.com; s=arc-20160816; b=IxOwR0Vlq+tzM1qr0JUCPp6aAq9SR6MS64WROhe688iSyVmaWXVawhFuvbNrnMdRAR SAHkE1Pt+HEnpsfZ3WewEm1K3atZM1+ppP6H6I68F1aJsoIuXtRAg8H7w9GzNSKJ+2kH u7yobeGSuzGRzbAlwDrhiHfggX8zGzzf04ViPK0re9+ICiXMPq8yAz0098sek2T3E0qP hZTnwE4hS2K0EXzcnwU0YKkEfnXUD4ws09Bf8oCUKaSHUFSF56rvHApYL4H2v8vhwlut wsbI7UE5pBwycnsaPCcCcSC6Eexq4hACFTDubJV3iobMhsK4dMtBF4yDjG6oQJZ1FoLf mMjA== 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=CWF9+sJ+2rxBy0qq1lQhFCuJkfzdDpPnj0lOfyI7+WU=; b=mdZCnmpBT6cenzeB02GboQc5nv1xbrIdvxDUoVVqp59rt1T3Sd/L3iKpJbVrFbr+fy sXJ4EakPyUXQhktCGVLbmZZJH8wFVGTpA0+PVZ9TJltcnMsN3D1Cs5qZ41PrAgevjW3W AjdtgbVE1rPdSd/q5/eeka5MVhF5lMpehm1MsxEm2tv+smoqzsW5umUENB6UeZOLkeF6 88V1THyUnCA8vKV1nH9nTJooV6K1YcOyURiJR30Fhla3fB4eGQ6chQxdfai1C6lyZHIk kePmkqq/S/K2JXCu1RpM7lgdnYDQDjrM/g4zhpR3jwdgyjHyi0uu6kiEKuNqs26OaCwu h1IA== 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 q11-v6si18532610pll.10.2018.05.31.18.39.47; Thu, 31 May 2018 18:40:01 -0700 (PDT) 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 S1750934AbeFABjR (ORCPT + 99 others); Thu, 31 May 2018 21:39:17 -0400 Received: from ipmail03.adl2.internode.on.net ([150.101.137.141]:35417 "EHLO ipmail03.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbeFABjQ (ORCPT ); Thu, 31 May 2018 21:39:16 -0400 Received: from ppp59-167-129-252.static.internode.on.net (HELO dastard) ([59.167.129.252]) by ipmail03.adl2.internode.on.net with ESMTP; 01 Jun 2018 10:56:59 +0930 Received: from dave by dastard with local (Exim 4.80) (envelope-from ) id 1fOYqH-0004M2-MS; Fri, 01 Jun 2018 11:26:57 +1000 Date: Fri, 1 Jun 2018 11:26:57 +1000 From: Dave Chinner To: "Darrick J. Wong" Cc: Ross Zwisler , Toshi Kani , Mike Snitzer , dm-devel@redhat.com, Dave Jiang , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns Message-ID: <20180601012657.GQ10363@dastard> References: <20180529195106.14268-1-ross.zwisler@linux.intel.com> <20180529195106.14268-3-ross.zwisler@linux.intel.com> <20180529212510.GJ30110@magnolia> <20180529220114.GA13948@linux.intel.com> <20180531191332.GB7825@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531191332.GB7825@magnolia> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 12:13:32PM -0700, Darrick J. Wong wrote: > On Tue, May 29, 2018 at 04:01:14PM -0600, Ross Zwisler wrote: > > On Tue, May 29, 2018 at 02:25:10PM -0700, Darrick J. Wong wrote: > > > On Tue, May 29, 2018 at 01:51:01PM -0600, Ross Zwisler wrote: > > > > From: Dave Jiang > > > > > > > > The function return values are confusing with the way the function is > > > > named. We expect a true or false return value but it actually returns > > > > 0/-errno. This makes the code very confusing. Changing the return values > > > > to return a bool where if DAX is supported then return true and no DAX > > > > support returns false. > > > > > > > > Signed-off-by: Dave Jiang > > > > Signed-off-by: Ross Zwisler > > > > > > Looks ok, do you want me to pull the first two patches through the xfs > > > tree? > > > > > > Reviewed-by: Darrick J. Wong > > > > Thanks for the review. > > > > I'm not sure what's best. If you do that then Mike will need to have a DM > > branch for the rest of the series based on your stable commits, yea? > > > > Mike what would you prefer? > > I /was/ about to say that I would pull in the first two patches, but now > I can't get xfs to mount with pmem at all, and have no way of testing > this...? I have similar problems, too, but: $ ndctl list [ { "dev":"namespace1.0", "mode":"raw", "size":8589934592, "sector_size":512, "blockdev":"pmem1" }, { "dev":"namespace0.0", "mode":"raw", "size":8589934592, "sector_size":512, "blockdev":"pmem0" } ] $ sudo ndctl create-namespace -f -e namespace0.0 --mode=fsdax Error: operation failed, region0 fsdax mode not available failed to reconfigure namespace: Invalid argument $ I can't make head or tail of what is going wrong here - how am I supposed to debug this and get it working again? FWIW, XFS+DAX used to just work on this setup (I hadn't even installed ndctl until this morning!) but after changing the kernel it no longer works. That would make it a regression, yes? Cheers, Dave. -- Dave Chinner david@fromorbit.com