Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1301329pxb; Wed, 10 Feb 2021 05:26:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpzhwwWdn2+gLPnDNWKtsES47Qi4hSL2SeLQ8N7gb6R3x4YvK5NLc4d8fYG1CeYXmHr2Up X-Received: by 2002:a17:906:16d0:: with SMTP id t16mr2790202ejd.259.1612963573075; Wed, 10 Feb 2021 05:26:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612963573; cv=none; d=google.com; s=arc-20160816; b=LXI9M3u9bx+j2UXiWFCQizYYCRw+NHUZTenUHd0zykPwM3snQc4evQdxDOoAqX5R+g YoMC4Vzowv6hbOThGXKyfXdekPOrCUzUvTNz9kGeHBVCSBPhyqC4jr49wMbjjZk7Fby8 pSseAw6Gzq8RaySld6611ajh398uJ/jqd6rQ0SIMNrhHxoFMB0nwtq9HSydpXEWUeNfa opV0FqLew/CFNaLVcqhbqZcp5pkTnAs+tMc2XF+vGjEPCAp7kqCaTpjCyDBjOskMO8VT pdh2nEJOl13s0sRQoskHEfdg3mPaGVEE44/Jt6xpPxGaDouhDK8JTMhW+o5i87zLlWxh AyKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pVJOtr9F2U1ZgsmCo5HdPka7M0wngVXHZ//i0BAR3+g=; b=wbSssYSg69GPZDyojnc/PDz/QS2dDNnzgcH+WamUidmxoZQFBEnAkjloubz4FYhENp Ply6ZNIMNmDitU95p9BjnfY1l/5m7l5DF0qp5Qf+jl082U8aG+0dLux9iDAetdZLPJpA 4TcnmIGcajm2Ij9CDi/0rM77xv5xsIxtua1ms4y2x2moUBNDUgol1C908jpG1sdS+0Y2 uTVvqBLgOTWutwPYfJLZMz7A+KXCqkg4TTfYoUPX5RfevJvnLdbR3+n7FiQJOEFUbsaq PhdRMa6C4lj4eazOuxVxhjTpc7lW7f79P7x7lQ+M/wFzWFc/YXq9HNwdDiARPfwJvczL 3OOQ== ARC-Authentication-Results: i=1; mx.google.com; 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 o5si1323189ejm.1.2021.02.10.05.25.49; Wed, 10 Feb 2021 05:26:13 -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; 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 S231810AbhBJNWN (ORCPT + 99 others); Wed, 10 Feb 2021 08:22:13 -0500 Received: from verein.lst.de ([213.95.11.211]:51102 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbhBJNVj (ORCPT ); Wed, 10 Feb 2021 08:21:39 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id F2D596736F; Wed, 10 Feb 2021 14:20:55 +0100 (CET) Date: Wed, 10 Feb 2021 14:20:55 +0100 From: Christoph Hellwig To: Shiyang Ruan Cc: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, dm-devel@redhat.com, darrick.wong@oracle.com, dan.j.williams@intel.com, david@fromorbit.com, hch@lst.de, agk@redhat.com, snitzer@redhat.com, rgoldwyn@suse.de, qi.fuli@fujitsu.com, y-goto@fujitsu.com Subject: Re: [PATCH v3 01/11] pagemap: Introduce ->memory_failure() Message-ID: <20210210132055.GB30109@lst.de> References: <20210208105530.3072869-1-ruansy.fnst@cn.fujitsu.com> <20210208105530.3072869-2-ruansy.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208105530.3072869-2-ruansy.fnst@cn.fujitsu.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 06:55:20PM +0800, Shiyang Ruan wrote: > When memory-failure occurs, we call this function which is implemented > by each kind of devices. For the fsdax case, pmem device driver > implements it. Pmem device driver will find out the block device where > the error page locates in, and try to get the filesystem on this block > device. And finally call filesystem handler to deal with the error. > The filesystem will try to recover the corrupted data if possiable. I'm not sure adding just a method without any of the support code is a useful patch on its own.