Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1598067pxb; Fri, 20 Aug 2021 09:13:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiomahezNgOYsaGJ4VdtVSCfiA4MscxqsmH/pHKYYiK9aRmzqIhfcJiSjea4/I5VujAtDT X-Received: by 2002:a6b:b4d3:: with SMTP id d202mr16635476iof.8.1629475988445; Fri, 20 Aug 2021 09:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629475988; cv=none; d=google.com; s=arc-20160816; b=kGzP5e7Iz8TjMRlHj6VSZO/ErlrPIq6AOYEyBmzIkmI9D08hPTOFBcXTauOlJ4uNL4 WiZcxbuKS9q4kvZzwBHnDBN0i3FQ/Bpo6xKk8H0nFkLZXz3OC6g8sDIK6+f8b8xdcOFT JuGZySm89d7aBCh1j39M8/L5JDE7ucbnihKllR/02H7CeZf1IzsmNh7AKfJOi3D0Em2u Af0zNsLj1U89fo86XjUSzJ1JlsttoZmBgdp0rWF8rb1sv4ZNDs2k1TwA3XWc76NfHCoz S1Ijg/WLOQV+rphZcShdSE5dc5Z18HKXWbeA0MY6Kjr6zsM/gWl4/bI5i2OhJMsAWrnO TxBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=epIvCzmEqd8lfEkp+zSX1z8FhC6G4rECGu8AkMD5cjk=; b=W/8/qSDS7UPv999wuRVFRHIHwfnLgTiXdDGrtlalGw0ndamsZX+v6usLceDfSZ9y5u nbDHuLrQdDM1Ql/c8qOksCFSbpfPSa2+C8XrwjipowFrtCCkJyB5QGUZsHy+zvjH9WYy Z3Em3dU2RQ14X+B52t/hMd2m9mdSvpBvyMKhMhqapmW2OFf7XIf3sPVpNdv8rdUZlzT/ W9Vh4uzXOHKcwq9gJLs2xyxxSln4yng1shORzHgafrEyi2fbp5z66iQLTDTcG+Uqr8Gt icHQjwp68hnqrkj2r02BMYD0EPqHOvbZUbRgqVipm7YopDhfe0DVddYrTDKg7j3lcnfJ y7cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=P7Uh70GB; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si5923787jaj.78.2021.08.20.09.12.56; Fri, 20 Aug 2021 09:13:08 -0700 (PDT) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=P7Uh70GB; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbhHTQMm (ORCPT + 99 others); Fri, 20 Aug 2021 12:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232789AbhHTQM3 (ORCPT ); Fri, 20 Aug 2021 12:12:29 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D9FC061156 for ; Fri, 20 Aug 2021 09:07:41 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id j187so8986884pfg.4 for ; Fri, 20 Aug 2021 09:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=epIvCzmEqd8lfEkp+zSX1z8FhC6G4rECGu8AkMD5cjk=; b=P7Uh70GB0OX3B5Tk5r5zIxGh0NGQ540vdB1mNKc2+JutGdaZMDOkgUxO7d7iWDuhYZ z1tCB9283izawrMkSTNVGS7wgAXNGmlA3+Cr1pWkT1AUl7J8yzzbAfduwNz8D3V9fHfW 6RZt94rmopS/jx/A8V3arfNqYRWF4Gb2BH8IG7P2QkRuA12Qi+9LAd16WMy1VBKta2EW 6fU2eSUDVOsSjU2nRgaifSK1mQmCZIk5O3n/hYxktE56ZNMrEERZzMgxXuvQoedf5AQ1 +n2gl1cUovGWZFtsMrCPt+gUTucffn2xvgJEpGG8k+mhCO/9SqQlDQ6VWtpgkGfa16cD fs1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=epIvCzmEqd8lfEkp+zSX1z8FhC6G4rECGu8AkMD5cjk=; b=RwIoZvge97tB0TaeKMK0RQtTl6iBWx9ubKu7cqjGGcDfP3W80UD12Frztpu2NAPbL1 ks1uQQJoCkSTNkVatpHgUszbCzRnOq73jrUvpr0pjGmDvdcpGF0+Lpognpy5Muwapykw KQkQmzY8UNGZMxmPNVrFt/SjOKbI6C2bmDF0EjXo7BzVNBh/pmG6Q2uVEvr1lrNZpZv7 qMdXZbpR/5VScTZnaH0EoFLkSzBSC6mY7ebLh/AnBJuyAF1sWfWnb9tX3V6e1T4r0xRM xVVAI1UO49lonHDu5+e1eEO2TKV3ZUh+GX5PWkiQzSvEfeuVc91BiCMf8hq6O1ECJgaE Qzmw== X-Gm-Message-State: AOAM532IuzAiChv4t/7tbbqRyvCBEsdY0AeavfuV+9ZPDHPs+UXQuHhq M98R8sABhbUGENvqm7OiMXVx2ooPs20NDRv9lES4sg== X-Received: by 2002:a05:6a00:9a4:b0:3e2:f6d0:c926 with SMTP id u36-20020a056a0009a400b003e2f6d0c926mr13253034pfg.31.1629475661105; Fri, 20 Aug 2021 09:07:41 -0700 (PDT) MIME-Version: 1.0 References: <20210730100158.3117319-1-ruansy.fnst@fujitsu.com> <20210730100158.3117319-2-ruansy.fnst@fujitsu.com> In-Reply-To: <20210730100158.3117319-2-ruansy.fnst@fujitsu.com> From: Dan Williams Date: Fri, 20 Aug 2021 09:07:30 -0700 Message-ID: Subject: Re: [PATCH RESEND v6 1/9] pagemap: Introduce ->memory_failure() To: Shiyang Ruan Cc: Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , device-mapper development , "Darrick J. Wong" , david , Christoph Hellwig , Alasdair Kergon , Mike Snitzer Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 3:02 AM 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 filesystem in which > the corrupted page located in. And finally call filesystem handler to > deal with this error. > > The filesystem will try to recover the corrupted data if necessary. This patch looks good to me, but I would fold it into the patch that first populates ->memory_failure().