Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1243726pxb; Fri, 21 Jan 2022 13:12:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxQPVBYen75Mvz6aNsasUhlv08/K+V7BB0gfeqQe0iNVgsMuHlSpj+0Fll5/ZVqvsThF26 X-Received: by 2002:a65:6a8c:: with SMTP id q12mr4227596pgu.314.1642799527130; Fri, 21 Jan 2022 13:12:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799527; cv=none; d=google.com; s=arc-20160816; b=TVTQ7w0eOW/VZxlUmvHB4v3Hs8M+IiqdD/ayivjZ6aNxPb/WcwLN8tpUMuBQk4tzas 43AmIXNBz5EEI98ixSdD6fz5ToaVieeoczRf26+c3q7PCORrIRbdvwhccB+osBACZNKf Ytmlqs7jKJLHdSsqq873uWp1L4izAQzrPqapQyBDA5gQZH6kt5YWDUy4YNYkhEn36kOm yd7rNzhqV3BAaVCEv9IoKMZ4pxKbmFnmYCoR7J7f3qwc6a4bC6a0mQviQEzdWhvKCgIL kmhqamOyES0PJnjYfQBU5d8EqpVxUY3nXrgH3tOI2IMxRU7itnhuGqZO2ZpU8Kj7it8m /Wxw== 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=Fc144p+00WPTTP0zDhiznn2Saihska6K3bXQ86DJDN8=; b=OBKNpaUkq77OUmAkHeGHSzhKs/07gvJSO83Rc7NzfVTHJfkLQg/yW62K+RekbM+HtL xDmFpLK0zHc2P6HHEKGmUdJVj5ppE3crWDG5dV3gcoWjG5ZPrmzJ46fGd33is3X9RIyF r0ruPzA2FTFVlklz7gTZIngW0fUkVMZfCaf5abcBedBVSOCubaY2a8RLCTDJ+P4rpTdE Y7YuWWW6DiuWjdmivS3Ci2SNAk+EobQPSXx74dsyUxH2cyupqwYg2i8/ajHO1z1sb4bE aPRor/NpPTVyRopAy0AMEVnQH+w6PKXJdOdidPtIdjfZs+fF18LmS4oHfYDPeojchQPS L84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zvTVKUKQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j123si7083417pfb.294.2022.01.21.13.11.55; Fri, 21 Jan 2022 13:12:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zvTVKUKQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359350AbiATIq1 (ORCPT + 99 others); Thu, 20 Jan 2022 03:46:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359357AbiATIqX (ORCPT ); Thu, 20 Jan 2022 03:46:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2D3C06173F; Thu, 20 Jan 2022 00:46:23 -0800 (PST) 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=Fc144p+00WPTTP0zDhiznn2Saihska6K3bXQ86DJDN8=; b=zvTVKUKQd9PEBeP/epohTKoS+l or0ElzDA6K1hJ+W7u12fMmcQpP7gHqMjL3UzuuGFGloW2ww1X/tKQiBNw7gj+Fj7abYWevriIOS6H 1GzCib8DXwF5Hr1I6wLxqUm6hPlDb58oR7iQ5ohv5nmbRvA7GXelUVCdaF4HjMlyS7E+/ZxcG9XH0 09qYIkZ//VSEouo9f4Uy3qffJOfHEiW1mS8AfmNQpZTvyqZPB4iNotwURjoiG8xOk9mM4ndDLy1sp z3qtmtboIzdqQc863Ssh+x57Dn1FKDdh26S8CkLMnfMD5neyvmq3y7BR5cJwcJb9R0BU973hNaXU2 r6+tKmWg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAT5I-009tD3-5C; Thu, 20 Jan 2022 08:46:20 +0000 Date: Thu, 20 Jan 2022 00:46:20 -0800 From: Christoph Hellwig To: Dan Williams Cc: "Darrick J. Wong" , Shiyang Ruan , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , david , Christoph Hellwig , Jane Chu Subject: Re: [PATCH v9 02/10] dax: Introduce holder for dax_device Message-ID: References: <20211226143439.3985960-1-ruansy.fnst@fujitsu.com> <20211226143439.3985960-3-ruansy.fnst@fujitsu.com> <20220105181230.GC398655@magnolia> <20220105185626.GE398655@magnolia> <20220105224727.GG398655@magnolia> <20220105235407.GN656707@magnolia> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 05, 2022 at 04:12:04PM -0800, Dan Williams wrote: > We ended up with explicit callbacks after hch balked at a notifier > call-chain, but I think we're back to that now. The partition mistake > might be unfixable, but at least bdev_dax_pgoff() is dead. Notifier > call chains have their own locking so, Ruan, this still does not need > to touch dax_read_lock(). I think we have a few options here: (1) don't allow error notifications on partitions. And error return from the holder registration with proper error handling in the file system would give us that (2) extent the holder mechanism to cover a range (3) bite the bullet and create a new stacked dax_device for each partition I think (1) is the best option for now. If people really do need partitions we'll have to go for (3)