Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1848471pxb; Fri, 20 Aug 2021 15:59:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+Cq8dZ5aus6vBXqG0SZFNKk3tPZt92MxORLAEdpZwHSZNaerkRTdmlwu6Xi/wIMlN1nth X-Received: by 2002:a50:cc08:: with SMTP id m8mr24154750edi.60.1629500390072; Fri, 20 Aug 2021 15:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629500390; cv=none; d=google.com; s=arc-20160816; b=etrs980M6zCGjOVVGm2gN8N7x9qmQ8g39Y28PYNMigpmlJKgmw+3wKtXjA12ww93Nb WJ13hN0saIwBU7fFVcT9mu9eFCbv3+CdJ72kMftPavUMZSTWzwYyR/MDV66V1DwkUras Ta9YwrMbDmnuUo33HW+Sa5oSZl0mxYPEVM1xtnATeoz6UMeYQM6oi/Foy6s20OQR4IaY hd4fXu08HNoeWtI8sdNt4cFDjpKPmMl/WqQ8ssIiBUxebZJDLxAVd2bnvuFW7Frl8oMN I6QONgXeEyOKqo86n9ePaQtyfkhlApbfd42ROmWiO1+B+HQSXuZ9RlgdwVppsfXCo1fT HKew== 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=G1Z8mu8s2sgn0mbpfu7ra3LWl3tk+2BaXWQ56zeT5Qo=; b=dkA2+udoq8BdEAo9Ojfs0uC1KQGub2ZnTZ5x0IGZi8S0LunvXvVqjgRM/kLHb/taru O7PeJGKw4idZ34vMtHiy3Pz/tHuHYi2SnXbKLLxXobM9rU7oryy6z19XyuUU1ky/j+8H 2fjxdhOXmZhIYvqv/X92fb3Whn4UNpHXltbzC0w30O+9gn9kewEjRFR71lCHA2UJ+wN7 j1p8LqL/KVyRCV52+iks2UZX+w9/ytw9FUT1k3GYxFk2jaW4D5cklRQZexX9PUfyytDm ci6kE4BwDVFxxgQD+dmJt75BObvyGYLRW7f1X1j53RHYmQfzhulUCRoiFT5RgGk4pgzs lTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Nt2BeHwj; 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 e4si8398483edr.230.2021.08.20.15.59.17; Fri, 20 Aug 2021 15:59:50 -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=Nt2BeHwj; 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 S231482AbhHTW5p (ORCPT + 99 others); Fri, 20 Aug 2021 18:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbhHTW5o (ORCPT ); Fri, 20 Aug 2021 18:57:44 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48FA0C061756 for ; Fri, 20 Aug 2021 15:57:06 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id fa24-20020a17090af0d8b0290178bfa69d97so8381425pjb.0 for ; Fri, 20 Aug 2021 15:57:06 -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=G1Z8mu8s2sgn0mbpfu7ra3LWl3tk+2BaXWQ56zeT5Qo=; b=Nt2BeHwjtlSFrM6oUpAp0AEOX1AjgKzHiyuRB0Rdt/NkFHq54pda5iNS/61TJ/a9/M WtZ0MUvUAuWfZAkHqP5am1wnus8fD2MJNtfRLgOK5BYxEamRAJy68cbjkG3kKLjc3e6m 1Ms6ALCk+o8RdYAJUX1suKOU3XJBE72luJok+nKUgFIRJIUiL3D3N2uTn1bOzfRiMLOg KTpdgQvnGWwmB9bFrP9a2SK0ZENdHfLcqPa9QmnSQFNoo7bwvdnxzejlRyQ87R+YTrTU B+QeZ8y+BYNCRMX0yjp8cW2G7BvJIJhPtgqnqBhSC+lI+hPbKn/JWXQ3x6bi1O+SAZol L3iA== 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=G1Z8mu8s2sgn0mbpfu7ra3LWl3tk+2BaXWQ56zeT5Qo=; b=ifESd4dCieQwHjFTCAltcGVH70VLIQXIRQs3WJiDwDWFMd0Y9nQIu7F6qTkuSIn8Jh h6xyS/CrNjeW2c2Lr7P8RqXTpW34Fty8LkfWoHW2Iji6BwdZXNIycZx3oCsH5+ubEyp4 UHDGZJ0otcj2G9iCZShJfK/IyRnqaUvvRkgCiuWZFGm+pHiniB9hXmeSlffmvvdf4J1x enFw0xROWB8Jlg+otq2YUfy+63JSbpdxVrlAYG76d5ZFZZi+6Y+gaBUMyJ9UYc+kkAZq XvrtYvZHAfXZiDAMhs9rK4X3x+4fRlndlcRPaz8vrYiP3kmF3GCgp16WQUB7obWuCUhH DS5A== X-Gm-Message-State: AOAM530Qg9Dm/XsocDFcmHSLyFeEDBUEwWQKKwVZwkxe5uwjR67h/5yg eZS5er1zUC3LJVVfDdNwRKOn/1W1tlMbTyGsykilMA== X-Received: by 2002:a17:90b:18f:: with SMTP id t15mr6777302pjs.168.1629500225798; Fri, 20 Aug 2021 15:57:05 -0700 (PDT) MIME-Version: 1.0 References: <20210730100158.3117319-1-ruansy.fnst@fujitsu.com> <20210730100158.3117319-7-ruansy.fnst@fujitsu.com> In-Reply-To: From: Dan Williams Date: Fri, 20 Aug 2021 15:56:54 -0700 Message-ID: Subject: Re: [PATCH RESEND v6 6/9] xfs: Implement ->notify_failure() for XFS To: Jane Chu Cc: Shiyang Ruan , 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 Thu, Aug 5, 2021 at 5:50 PM Jane Chu wrote: > > > On 7/30/2021 3:01 AM, Shiyang Ruan wrote: > > + mapping = VFS_I(ip)->i_mapping; > > + if (IS_ENABLED(CONFIG_MEMORY_FAILURE)) { > > + for (i = 0; i < rec->rm_blockcount; i++) { > > + error = mf_dax_kill_procs(mapping, rec->rm_offset + i, > > + *flags); > > + if (error) > > + break; > > + } > > + } > > If a poison is injected to a PMD dax page, after consuming the poison, > how many SIGBUS signals are expected to be sent to the process? I think it should only get one. I.e. just like the the generic code does one shootdown per mapped page regardless of whether that page is 4K, 2M, or 1G. Once the application is notified it should be able to query the filesystem to determine the full extent of the damage to files.