Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp235412pxt; Fri, 6 Aug 2021 00:13:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkCn2R5pJWa8q6sF4uxP8aV10ktbXyGEWKemrjrsfDNQUtz1Y1IZw25kdNfv1anGDogW/D X-Received: by 2002:a6b:c906:: with SMTP id z6mr717599iof.7.1628234037598; Fri, 06 Aug 2021 00:13:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628234037; cv=pass; d=google.com; s=arc-20160816; b=us1PHOJZ+kbrnYJhxxPEGraAgsowq3zfP8522NysmZqvm9f/0ppowTxUWxB50pSrks N+m+xeA3/YbEuYzFvFyigzYKSB5At58GYXlri1L0lLQPVB8Tv5JyQCDDyTuy4BWTjLyp JAK8Lvhj73y2ulXorGtU0datRUT2TU1QTdh2zPQlPEHfvalBWPV9/nvPp/OFKTI/3SIR Ec+2RIpLRJp/3UIq8u1Hhj6grCNDpH7ITIw+z0TmrQzGN1lDT7d6ENH2zMZH7tWb0vzc 3xuy0KD34LUrwRi234sbgXStuM5qF6vED6OEzNcXKxKuukw0D47oGggU9bnh9MqUwgPT dbVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id :organization:from:references:cc:to:subject:dkim-signature :dkim-signature:dkim-signature; bh=mPWclp1uOXNtQhucC68SQw1PlNP4/LvTsR4sN4lKlfA=; b=B7OyUJg2f6r+5CNqbsD21x8wc+WByUvkx37Tv1Iyfmgy/d5V0ve/P2F9vsCsENFDl/ W27UVrl3jAYs9eXD1HJ18fHiTWz4CAdfMx8AYmD2NkLNazkv4KXShLuP4f7HuDO4hIOW eEWEM6N983BB3E264T4VJf5Mw2BqU75ColtEkYAHzRBUvBIy+9qiVmbBPcLdsfd6RkAZ F8506uV8yjVgm/W70Q4+Murz24vzX38T8CcgDk1rSWHm+ZgDU90JzWyW7i5taSy8n6jc cb3jHdJdrKeE45+6lqY78DVVBFh3fOZNmbo2yHnYYyKqlUztXaTB7Xh+Zmx6WerTwTMM Ue/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=vtw67gzh; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=mBm6XC2q; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=eLV4oQAY; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si9230650ilj.65.2021.08.06.00.13.45; Fri, 06 Aug 2021 00:13:57 -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=@oracle.com header.s=corp-2021-07-09 header.b=vtw67gzh; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=mBm6XC2q; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=eLV4oQAY; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241864AbhHFA7i (ORCPT + 99 others); Thu, 5 Aug 2021 20:59:38 -0400 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:49656 "EHLO mx0a-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232902AbhHFA7i (ORCPT ); Thu, 5 Aug 2021 20:59:38 -0400 Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1760pss5002855; Fri, 6 Aug 2021 00:59:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=mPWclp1uOXNtQhucC68SQw1PlNP4/LvTsR4sN4lKlfA=; b=vtw67gzh4iI1tvG5xLQRl+CM+VQ2HpiseOtGCvIILAbLHkh1jCzuahZe+QvT9S61/PC1 q49JCbt5CLiAuSlZWtSEDK2ayX2tZASOLSPOdu5uOviqbjlMjQeyyAm/cr42Lw+gtTE6 oKbQh+ptDKRrR9q5Y9E9i6QmUwYBz/t5Lgqn/RvfxA+kg8JWKzl8JLvq8b3OgBFABCZG kUNouR8cZDeYCXmGq9hNYOvCi0MvCutM4csA59ZY/RIPjwkhCdB2nRC4rfRIU6blevmr yiJPN6Afz5Tp/je12VtzrecUx5HDliROraueh5qKCHjAFe5c5M2vww+sIjMeMDs+9CyH SQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=mPWclp1uOXNtQhucC68SQw1PlNP4/LvTsR4sN4lKlfA=; b=mBm6XC2qPkGZqxMijJlRhhWZlu7vcFU1YK7MMuGpfCfQurHf1Sx30j5mxvKVUi/mIPvD PSgZFqust/73UwusRpJ2ecbR91BaFdy+Vm1xtWiXfSYIxbXoIUgKN34Dw7ZfcGQeb/Xp fr1JAOk7RVD+6tKn+9SWjT2+38eYJrQiWb8XZTfMa/6h3wA8c15vIOW4MXJxmm5yR9SW 1FtLM9PijlHIJa1di9ENFs2gHHbTsc+HUMSAEtG19EdmsXRGDG2IJF9e8i9LRKqEMYsu apyw7LLjS7Gm4GhHDBSKcOPQfPqECghJdxuT406aX15eQYjOp28IUIoGNRiZkqWt19cr vA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3a7aq0e290-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Aug 2021 00:59:11 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1760oEEg111448; Fri, 6 Aug 2021 00:59:10 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by aserp3030.oracle.com with ESMTP id 3a78d9m0ga-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Aug 2021 00:59:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QJvkFT/dfThd6gE+78FMIIrJgZDhjB1aJxCasgWPCM0UequRtAxDp+Accg9PBWxzlFlDHra0bphoaQdKgxqC3s/7Th6jQdew0Pyl7ya7b0ORjGVYNaA0OGECqt6Cizl+MZeDSFk4z/Obumke/d/nfv10W2t0oxg32da4iNKnXI/Ucc0K0mabGsJxdK2vdXfiUdgPnAFmKwmSn4jGpL2+slMXfAO3MCxyulwz+ymX51zzJzlCSStexUhcXqpI0Q+H8UwJZ+cO+Vk56W4SFi5Ni5C4dIN5mP/MT816y921oiwE7eQdyOP6mTp0OA2mvSIoL8waJaRwpE44cXR5e30FHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mPWclp1uOXNtQhucC68SQw1PlNP4/LvTsR4sN4lKlfA=; b=gdLyhfNVNcnv6vgAp6qIwqrpFwKWpI32h31YD7x1E3xshEYG4YaXRVqybZDdeN+L03DtscQkL52OzeqLlivEu1pt0zuUj7VWOlN1uum3YQNFSXbgRP1rZhq51kLz2+OQMi63/1kHtfxy/Jx5kgX6R2BbQzsM6R/4ip/69QYuZzwFpAHZZyvtUIlyXflqhBNtQjR12J7dzgmuxhWifpFqXCc07ReleINnL+7ylgFpRQDaTpa2QtzRTTLU7hlDt2dKRdj4AaY4+t/JBP50fJ0ffxskHXUcQihhDkMyOV6ifJLdih4c83OWHp+/YdiNNmXOpAWWUM4cGdZUZgvYDrYsZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mPWclp1uOXNtQhucC68SQw1PlNP4/LvTsR4sN4lKlfA=; b=eLV4oQAYvL4j/dOKY0mQUWPIHz+U/tFlmw9KjBUZdBcmnsJHke1lglPjLvXfo0c9rQFZB5G5LExdc7CHObCL2RP5/DMG7yDlH5kPlq33Czo+QEYcZAf9MbqtlgXxvEh3hYJDgpHm4dN4X2amP+Zz2Arh45VjhSDtqwuusfD9OTo= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=oracle.com; Received: from SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) by BYAPR10MB2792.namprd10.prod.outlook.com (2603:10b6:a03:87::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16; Fri, 6 Aug 2021 00:59:06 +0000 Received: from SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::51f7:787e:80e5:6434]) by SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::51f7:787e:80e5:6434%3]) with mapi id 15.20.4373.027; Fri, 6 Aug 2021 00:59:06 +0000 Subject: Re: [PATCH RESEND v6 5/9] mm: Introduce mf_dax_kill_procs() for fsdax case To: Shiyang Ruan , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, dm-devel@redhat.com Cc: djwong@kernel.org, dan.j.williams@intel.com, david@fromorbit.com, hch@lst.de, agk@redhat.com, snitzer@redhat.com References: <20210730100158.3117319-1-ruansy.fnst@fujitsu.com> <20210730100158.3117319-6-ruansy.fnst@fujitsu.com> From: Jane Chu Organization: Oracle Corporation Message-ID: Date: Thu, 5 Aug 2021 17:59:01 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 In-Reply-To: <20210730100158.3117319-6-ruansy.fnst@fujitsu.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR11CA0027.namprd11.prod.outlook.com (2603:10b6:806:6e::32) To SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.70] (108.226.113.12) by SA9PR11CA0027.namprd11.prod.outlook.com (2603:10b6:806:6e::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16 via Frontend Transport; Fri, 6 Aug 2021 00:59:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1344e312-974d-4323-a95e-08d9587563eb X-MS-TrafficTypeDiagnostic: BYAPR10MB2792: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HSHGh4e81wk9Z2A+qeUr46AGi2xfyg3V2HQUDVuBoUbTPulO8TmcIVl2MoBZvPkfh29s05HbWEQ8QOWIJzKav2VENLH4XXzSmbH6pbjzox2bWPhBMPRmgAlQ2HNnGys5hO0cOqRTxeldy+NGfAXUJLcKdHsgrvk6WG+oFMFT07FJDvRXL+MpJ+KGCwkkfwB8RwHMwpQDtH63HwzJZ52rmUkJZlV9Jdk2kNPQzrR4Glvhjd78XUkHyAYnAh8tz1OQbb4sBwVlyAT5DM5ONS9Ejhmi2QAz5xavLMScKA7uvxdKQ+Jcc4xshBMhNbxdMDjTYBfm/Dmcxp1Wj2dQWtiXNBviDsuQtKulYb+YVTkxotnTE9JccI/XJ1IXFErZLhdh4NUpOxAr2hSZggjt+c9vWWXXvsGWwr2n0+5JuNy3f9f2MySgtJWyjmJ3QSLTqwliRtu0nDkXY77zw/wvmU9KIP67AAGrFHeEhix0ysHg8ksCguyyE6A2qiA+NbGpJqbnRUaVJZu7qQzfup23LbqGiNTmkaI4AnTCnsi5y/lQH8yb/o3QjoYUlDmfwEABuZoLU6FIJW6iNov+FAXCduOkPifCRg+LcEC3Nqy0Q65umBiH6fWXRxqfJ+sckmzhYuva83YUkf3SVOCI9vuhK9JdUyxz7gkmum0s0jH5QB9bxGskRibEJencHxTGj7bI5i2Ddmw/dzuzwIMjReGC6Gy7p9RU7QMkBTAgGc+Ulbw4ZkY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4429.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(136003)(366004)(396003)(376002)(39860400002)(31696002)(4326008)(6666004)(36756003)(36916002)(38100700002)(86362001)(16576012)(66476007)(5660300002)(2616005)(2906002)(31686004)(316002)(26005)(478600001)(44832011)(66946007)(66556008)(4744005)(8936002)(6486002)(7416002)(83380400001)(186003)(8676002)(956004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NkNXUUViWWpHdzQrVVpGTEdWWmh5RXBxS0Q3a2grSnI0cG1jTVBQVXREckxB?= =?utf-8?B?UzNOZ1BDUHdFOTJTdEFNU25wSzZReTdCQzQ1RFpGYXlLMXdEK09IcTlHREVT?= =?utf-8?B?ZzFNay9YRmwvSlJISDdrdnFhUktkOGVGditDd2Nhd0JPTFFZWnM1OVlndElT?= =?utf-8?B?bWtPcmE5UjJhK0ZVa21BcERRSWZyUXozenNUMTNqcFhZdFZEUkNLNFhpRFFv?= =?utf-8?B?dmxOZG9EWG1sYjB1Vi9UM2Z6dWtGeUJvTDlNSXdua1dSOEFnME1MVFRMREJM?= =?utf-8?B?d2poZ3RuQ2ZwSVM0OGE2M1AwWUg2SnFpd05rQ1dmWExiMXgwa2FEUDVOKzd4?= =?utf-8?B?MzNHdktJZ3JNSzlwM1dXTk5FNkp4L1RyenZZS0pPT3dtTW5EbkFXQ3kzb3Nw?= =?utf-8?B?QzhjelZBVW1oQ0hiL1hGc1czWHVhOWpWVWtiZjJwNG1jdndDZjFJQXY3dWRE?= =?utf-8?B?TFVERzhnS2VzQlBwVUowZTIwcmdRWEZvWTIyZlVZRDVDR3J6bllNZkhqRENl?= =?utf-8?B?Vzl1enRHTTdZb2E4dDhUVUNNaEhTeTllRUdJTCtvVlU5UHRIWHJHL3ZMMlJM?= =?utf-8?B?Y0ZyYkF1QllWSkw2aTRESjdhVkZ0UzA0NHk3SC92K3FoMlFWQUtuUWFyd3Bw?= =?utf-8?B?R1RueWJjaDBkZlJOcmQ5REg0TXg1bGtYMk1wMy9ZNnlyTm80Y2xPS0ljWFU0?= =?utf-8?B?M3NVNG9udklkS1RDUjQ4c2p0LzIvTUlxNTVwM1VjWnJmVWtIVWlXZHoxNzdu?= =?utf-8?B?bVRiQnEyWkhpYXJQNit1c0Q1ejlmd09zTjh1R2tyMklqc05xMXhramVTaWVZ?= =?utf-8?B?Rk84WEgvd0pmQzRNS2tNeUl2c2dpT2ZoRS85UHhXYVNrdWVWcWVoUlJQZCt1?= =?utf-8?B?dWpnbFc2VWhLcWhaNytGVzRBczdUT2JrMDl6SWJmaFM1WXhjK1lBQWg4K2xu?= =?utf-8?B?eEdjT3kxZjV3eExHSENtbXVrSi9jdWJCUU96M3JJeU0xdDh3UHdBN0xFOHEy?= =?utf-8?B?czJ4cHJIZkw5U1FUQkY5cHcwRGROSUd1eVRwU2xXdlB6cWpFaXNaQnVZNlR4?= =?utf-8?B?WVZ6MkZaYTYyS1ovMWV0aDZ6T0hScEk5YktGZGxEZ2ZuTnBHNEtmUXg4MFlN?= =?utf-8?B?emZPUzRmT0lYWjF2SWdFaDN1bTFmaG9DUkdTdjhoMGFJWWE0SnpPVUVueXAy?= =?utf-8?B?T1BGa1hJVDZ6NklyajFwWmVJbG1rdW1hc3FOU0JRM0E0dTVwK29iamF1K2NO?= =?utf-8?B?dVFEdk14MTVtcm01UVBNY3ppOFRESkx0QjBwV09XcHFadjBWQmRLdk5vSWVw?= =?utf-8?B?RFRobC9rU0lia1lHY1lmNjQwVnBVZE1sUWZpV2I2MTFwTExXTXhudHhvb0kz?= =?utf-8?B?MjVsTUc0V0ZYTXh3ZHdXOHZla09oTWJ6RWpYZTljZ2ZWa1dlVy9pbUhoK0t6?= =?utf-8?B?L0ZDM2N4bHpLdnU2Um4zbXgrVDdndW9XSDV4bTNQZDRDVm1SZHB6SFUxRGRS?= =?utf-8?B?VU1iM056SXlwdGdsTVpROHdjeUE3VW80SndiSG11LzcyZmwreWVYVHFBTE51?= =?utf-8?B?UGJFNi9IQXZDQTJQWWFDM0lRdWtzaVc1RGw1OUpwWVBiQ0VMc281NEd6c0NT?= =?utf-8?B?VUVub0lkNW05WmRWN1VpVkVRejVtMEs0TkU2bE5KNkFiblFpVXpjZWM1UUpj?= =?utf-8?B?UUZrOFZLWlhLaXN5ck1NRUw5QTRkUklIR0JZenRBK3NYUzFHN1RVd01vVlZP?= =?utf-8?Q?ieDZD/rIkLFG0GMtDb1GmgMhL3+tOa5koPUAVQL?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1344e312-974d-4323-a95e-08d9587563eb X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4429.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2021 00:59:06.2622 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jfPYPC8470b2V4l46wHV+YF8QRFsroiOM0PJUI4ajqmem7UTRrG9aeO61aBgHjiPsiZOLISR978H+NzvKMRLEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2792 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10067 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 adultscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108060003 X-Proofpoint-ORIG-GUID: KEV4xFjBEwvZVqWns7lp20QsbdRUkRLB X-Proofpoint-GUID: KEV4xFjBEwvZVqWns7lp20QsbdRUkRLB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -134,6 +134,12 @@ static int hwpoison_filter_dev(struct page *p) > if (PageSlab(p)) > return -EINVAL; > > + if (pfn_valid(page_to_pfn(p))) { > + if (is_device_fsdax_page(p)) > + return 0; > + } else > + return -EINVAL; > + Just curious, what is the rational for preventing dax pages from participating in hwpoison_filter test? > +int mf_dax_kill_procs(struct address_space *mapping, pgoff_t index, int flags) > +{ > + LIST_HEAD(to_kill); > + /* load the pfn of the dax mapping file */ > + unsigned long pfn = dax_load_pfn(mapping, index); > + > + /* the failure pfn may not actually be mmapped, so no need to > + * unmap and kill procs */ > + if (!pfn) > + return 0; what if a process has mapped the file but never faulted in, but did ask for early signal, will it be excluded due to lack of the 'pfn' association? thanks, -jane