Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp25143pxb; Wed, 30 Mar 2022 21:53:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzka1VaM0OP8MvlLT9SdxZmgq5NMAq3pRZNLRSmrIp7Nq4rmQg8yj0bqd0oLiuW8S+vV8ES X-Received: by 2002:a17:90b:4a82:b0:1c7:8a44:e0c9 with SMTP id lp2-20020a17090b4a8200b001c78a44e0c9mr4075231pjb.102.1648702380233; Wed, 30 Mar 2022 21:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648702380; cv=none; d=google.com; s=arc-20160816; b=ZnKgTPV0Fx3jYArK1aFwh3Fl6o3Fd58cZ4pLEp4+N5OmdLOS3xEUHna01vMjhmHn6R sBBDrKhkq0igXO9w1gP1H4Zej7/c+7bb3TJNH5bHu+wHapPQhFc9FDYw1ndgTDkkj9yb 54EjEeE8poreFXNC2zE3E1acUybmhjOJy0qOhxie5H4+6LZOQ7/f6ydxLqoQ3oOIaXOI SVyXYLMYf3PsIwJLPS913WelPS6BkdXzmi/V4qunPJ97Mi7BI9/6ylYq9BGHeXYam3S3 XRmGMt9yhdskNfZUmZuUduNE6aFT39tcYaJezLeRF2WBB+R6JAeljSVLrT+l7pHMxq6f 8LTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=U3pUixfOOyFDbSr6FLtB7sBVi31jP+6M8OaYOXBoQgY=; b=H5L//DWDATOtW5RyUOzyGtD6+hbw2+ZLtwARyknhgRFWHkGhT7uWeet17/ORl/f9g8 rja3+uyHVhDfG0ge3d58Z5AZ50J5TbV31lIR+Xgs+bClpWiKu20nireN10mKScYbziYX 6UVKI+OhmBftXBYGzRyCHkvrl4WunPj/IAz2Ew5ALI6SIxEFRu4CDxq8Anm30pqWd3ih yNBe6VyM9qLRo2CyFQ6oZgNQEU3G2+TTQ6k5WQ8GHAjq5KfhYtNicn2AL9ofGqMP/xlY JVTGvq04AVfOdCV0r99LBR0vKZWC2suj/zrJevbtnykHZrTZDUICDDIoWyfDRWgkDqpW ITQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=YgkVogJU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i9-20020a631309000000b00384650184ecsi22383051pgl.738.2022.03.30.21.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:53:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=YgkVogJU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1656E214FBD; Wed, 30 Mar 2022 20:32:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237541AbiC3FnC (ORCPT + 99 others); Wed, 30 Mar 2022 01:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbiC3Fmz (ORCPT ); Wed, 30 Mar 2022 01:42:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3F5F23456F; Tue, 29 Mar 2022 22:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=U3pUixfOOyFDbSr6FLtB7sBVi31jP+6M8OaYOXBoQgY=; b=YgkVogJU/RAOp5Vbz1tQf4mfAl twoURvNPtgJv/390tOp5vwOPGOjLzJH0kO4pcTfkrhAL82DiizugQQzJRhGU4FtAzw8R5Ht3Sx2PC nVusu3NraQKshMa4PCspAXFM2QJPCrMsa0hQsLSywVYRBfV1g7CXIvbqJm4IYybionOqFDrPR0lJi j7uOFnfl7ZLiepwL7kFDz0xDg7BmAL5FYiw1PpMQnpLivu60/US0g2KD155oDYyBwtveVWTx6AMjA GmzFDlZ6AQ8+yoYdyNhh/PD7/b9QDrqVzsVvpf0GPO67LyTKNVUS7QLSTfNgFheLe4dymNKMKm5I9 5T9W6GQA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZR4q-00EMY0-QJ; Wed, 30 Mar 2022 05:41:04 +0000 Date: Tue, 29 Mar 2022 22:41:04 -0700 From: Christoph Hellwig To: Dan Williams Cc: Shiyang Ruan , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , "Darrick J. Wong" , david , Christoph Hellwig , Jane Chu Subject: Re: [PATCH v11 1/8] dax: Introduce holder for dax_device Message-ID: References: <20220227120747.711169-1-ruansy.fnst@fujitsu.com> <20220227120747.711169-2-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 11, 2022 at 03:35:13PM -0800, Dan Williams wrote: > > + if (!dax_dev->holder_ops) { > > + rc = -EOPNOTSUPP; > > I think it is ok to return success (0) for this case. All the caller > of dax_holder_notify_failure() wants to know is if the notification > was successfully delivered to the holder. If there is no holder > present then there is nothing to report. This is minor enough for me > to fix up locally if nothing else needs to be changed. The caller needs to know there are no holder ops to fall back to different path. > Isn't this another failure scenario? If kill_dax() is called while a > holder is still holding the dax_device that seems to be another > ->notify_failure scenario to tell the holder that the device is going > away and the holder has not released the device yet. Yes.