Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2225075pxb; Wed, 30 Mar 2022 19:55:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfrK5XYJfLUiz3MlBC6h0LEzYVQodto+unD4s6wt+An4XeppYv5qV5YqS6qwTxWoPMiwuu X-Received: by 2002:a17:90a:de82:b0:1c7:b10f:e33f with SMTP id n2-20020a17090ade8200b001c7b10fe33fmr3517256pjv.204.1648695305506; Wed, 30 Mar 2022 19:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648695305; cv=none; d=google.com; s=arc-20160816; b=Vk9qz5kHIgvl2TTF88gm8F+llR0aXQJZyulQVy9nQVez0I5FK0ReDsedssknBadQSL uKWUUtPJqvNCLRAWFpvG7NAf/UT7BqctOMWXONQfJmNufpxWu2NlNdgOvPHpSPBToulH 1cj4mJ2nE5PwPUvPPCdzGpw5uTflEfrA+2BWcZV37Jk57l1aaX6hN4aFRtwaUdROyVxb hOOY4qGIWkoBbf9t6m/XeAqthtwaiFaM/5xaqZdAIKZT7ixOyerQKMpH2H4gYx+X94++ 6AQJOyJPIJNKPFg2QufPxdiNqUhvhoZKHoYoT+ulBndw7dsT70ZmL1KJPoG/LTXrwf9Y pSGw== 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=Agj8zzqvWDpZMOBEEasMzSNfdr1gbrYwMIOAO4LamnI=; b=CItD197UujQO0TYGswcFDwaGmrKw6XrwgUFBvnF0SEjp6HEJtYH/4udLzF+KjU0dAw eMpGs7eMASatU20l933PDySmgZycnwNO71V36TIAOqLl+QXBVyMGHkaVXUrlGaHU/c8d F9LX+uUwoRNL6umNwemM576aWcJE8VLWp3xzUK9UXl0nKlUxB8vx2LnE/gqVxiRnHypH YrN/2XeRppi5Mp2Gh/WO/I9pKQcTMO13xb2M7nsyafUP7ZjlFRr0tby2TUcIDntRQtK2 aOy5Ih+aRS6O28HUOCJlhqo6otXyCxXaRIfUnaDytWfy9zoPhvJaPhAutE7USVa9LdZt 4gGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=J1iPv3Zh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o11-20020a65614b000000b00382b764886bsi19974637pgv.121.2022.03.30.19.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=J1iPv3Zh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 2400DD3AEE; Wed, 30 Mar 2022 19:40:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245238AbiC3KPE (ORCPT + 99 others); Wed, 30 Mar 2022 06:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245234AbiC3KPD (ORCPT ); Wed, 30 Mar 2022 06:15:03 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1842C3A5C4; Wed, 30 Mar 2022 03:13:17 -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=Agj8zzqvWDpZMOBEEasMzSNfdr1gbrYwMIOAO4LamnI=; b=J1iPv3ZhgUKOquThe2zFhWa0mI llIxIKvuAlGogtQY7vnhQNxlFPGw5+bJmgRTsvhvVY9mEsgccHsSxCgxG/KEfmJce7AOCxD4K8Exj 6kuuBQG9Vmd677+eRtKWzL7lxsm/BUAVy5TLvhjgNUwWD/OJJwZsSVkVkvtreQb502vp/EEi1s2M6 NFxa5560Tf7Px3KaBClsWI3kzPxxI8mg6BfUY4KMZtYDC1WqQWZChQE1IU3L621fCEbnmNusYLn6O ic2aNhKBzSwNA/vY+vElPib2Cj9VgGe3HRjtK6gSH2MAiVwbn6OoSbXgapUMIKTkkBDQssa/py8Dd 3C47CEBg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZVKC-00F9X8-Rh; Wed, 30 Mar 2022 10:13:12 +0000 Date: Wed, 30 Mar 2022 03:13:12 -0700 From: Christoph Hellwig To: Shiyang Ruan Cc: Christoph Hellwig , Dan Williams , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , "Darrick J. Wong" , david , 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> <4fd95f0b-106f-6933-7bc6-9f0890012b53@fujitsu.com> <15a635d6-2069-2af5-15f8-1c0513487a2f@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15a635d6-2069-2af5-15f8-1c0513487a2f@fujitsu.com> 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 Wed, Mar 30, 2022 at 06:03:01PM +0800, Shiyang Ruan wrote: > > Because I am not sure if the offset between each layer is page aligned. For > example, when pmem dirver handles ->memory_failure(), it should subtract its > ->data_offset when it calls dax_holder_notify_failure(). If they aren't, none of the DAX machinery would work.