Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2474934ybh; Mon, 16 Mar 2020 04:02:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvFRrioihQDNBpzrfbgvDXMHiadGN4TyQfCff2ktwyLBGjyFygD09L3S+gfx5qP7gqF34VQ X-Received: by 2002:a05:6830:1608:: with SMTP id g8mr4169427otr.282.1584356577843; Mon, 16 Mar 2020 04:02:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584356577; cv=pass; d=google.com; s=arc-20160816; b=cF16ro1QvLfZ2QVMwMRA32GrFoKjlQs/n6JAga4wUv3DtV5Fa0zJJ/kTIoOd8rf1NZ mzHl7qWwpShjkfBVd5dJkV0A93126U/qjLcdIbsx2fsJ0DquOT6CZf3fCpoCe6d8pnFb cE6kN85vwWpTv9VGSNQLMvXHbO5reRn3nM2g6fmAC1jL1CqTIyWYBPtw8dZwrN3gsmSb WpJZCWdMNeTklLbGIPfEN067PzQCOAiQ3czCVG4bqAKudUOxO7zYFCqWddbXrTt6LXwV OYbFLe2JBshkL2oHWc2ELGss4ZTY7HxBjxtenwKgMUxBzhRlQbZT6wGh7NjJ3SQA2ZyB 06dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=mSGvJbXM33xPSnnkeaBqQ1Ol9q4oCZWy3ZPh3UQmYF0=; b=dp14Lk8klFkuqXCxC8sMgW3d6gjGvrfd41S3+dWbMLAhW/KRPINPiueY/9jkHdNzLO NcGNPfdXxDuShsY+uE4pwnszjSyhu2htumi5zkh1hFMg+jeHDFEhgE1K1HTvd5nvM89J 5Cy+jK1RfKmXO90D7IVEDlSDSHiJ5ET7M3Nf8tezsonPWyGbzCE3tRcI8YVjZj3XSgTW ZRVc1+y2ydp15Un1A+FZN0hpRGF/TRKRDeA3RLoFbPnAGKzn5hJrs8wcEBICnHgAnTZc FygqNTEZq7RmdFrQwK3noWuB0BINjNOxUT5lbtKd3L3Sip/PSq28bduRUpUpY4mIs/Gf frew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=hLFzca+6; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si1628492oie.5.2020.03.16.04.02.45; Mon, 16 Mar 2020 04:02:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=hLFzca+6; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730742AbgCPLBY (ORCPT + 99 others); Mon, 16 Mar 2020 07:01:24 -0400 Received: from mail-dm6nam10on2083.outbound.protection.outlook.com ([40.107.93.83]:29376 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730529AbgCPLBX (ORCPT ); Mon, 16 Mar 2020 07:01:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yic8bWbd6r4KWu6mcklpARP26qccSQV6C9qM2R+GTsYSqU5s5L5fUm0D135dxu7fqPlD/kcELrahms+zN+lk8iycDSruAnaSMWZdpjDMopYakOLunoqToX/Sy5afJO46CELcIQkSNAQM/74PbcJvdgxVPApvfBQfjViaIeMOlcFniOuvE66B7qcg7Jm0Qg+ppGJG038JeiUM0HHzXN/fTGn78hUkt4jD3NMICFHd9fpLypuVDb7G1nOmnvW5IdR3m6Zqdgj57mscA4VjS3DDwhnTnfWUhEqSqrSerShKzBkTfOURxyxplGMn6vrR4RiMzT/gr8HMW2iqTamRPvC9aw== 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=mSGvJbXM33xPSnnkeaBqQ1Ol9q4oCZWy3ZPh3UQmYF0=; b=Fy6iQ0OhdjQYFV+0F1Sawqjah7tq4iRgcEjuLzJeUrGFMqcKaBCJWSkzGr8nQ6stfavLAUTpahzYi7yfwMM7heGygWyjdQe4nSZSF5dEAkRymzLadYgtZwjnw2PeJHPxtd0tLPRqz9oNUvaeb+rmZgYuPjsQawzZc9p37YKzEmOev20ftrFjYbXY+lDvq16DHjSQ3s2eSwWk/Kpf1iKsK0AzhzSHbcRUUS4w3xx+vJwnJHDcRo4yZ1jitm6b/6MZhea3U/Jo91BaxqB97CH6sj9gCKiBCd2Nm7iE2Rn4Z5AQb5BTuKUD3An5rn26LrUN6eATENYD8x615ibn722/Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mSGvJbXM33xPSnnkeaBqQ1Ol9q4oCZWy3ZPh3UQmYF0=; b=hLFzca+6/IhVV15WDSwQgzE7WtwjHohomWxAiedOcPGXvZOgdLuuI4WkzioubVxodD4G+IlbNaKcaFHF4rOnkR3rdsHheAtLDvNGS3VeyexhMe79UW6GdhLT4stAXZhWMvTj/la3Wvd3iVSkaO+AbbIUWzFnXz1JT1JSWAVZ98Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Zhe.He@windriver.com; Received: from SN6PR11MB3360.namprd11.prod.outlook.com (2603:10b6:805:c8::30) by SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11; Mon, 16 Mar 2020 11:01:19 +0000 Received: from SN6PR11MB3360.namprd11.prod.outlook.com ([fe80::d852:181d:278b:ba9d]) by SN6PR11MB3360.namprd11.prod.outlook.com ([fe80::d852:181d:278b:ba9d%5]) with mapi id 15.20.2814.021; Mon, 16 Mar 2020 11:01:19 +0000 Subject: Re: disk revalidation updates and OOM To: Christoph Hellwig Cc: jack@suse.cz, Jens Axboe , viro@zeniv.linux.org.uk, bvanassche@acm.org, keith.busch@intel.com, tglx@linutronix.de, mwilck@suse.com, yuyufen@huawei.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <93b395e6-5c3f-0157-9572-af0f9094dbd7@windriver.com> <20200310074018.GB26381@lst.de> <75865e17-48f8-a63a-3a29-f995115ffcfc@windriver.com> <20200310162647.GA6361@lst.de> <20200311155458.GA24376@lst.de> From: He Zhe Message-ID: <18bbb6cd-578e-5ead-f2cd-a8a01db17e29@windriver.com> Date: Mon, 16 Mar 2020 19:01:09 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 In-Reply-To: <20200311155458.GA24376@lst.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: HK2PR02CA0146.apcprd02.prod.outlook.com (2603:1096:202:16::30) To SN6PR11MB3360.namprd11.prod.outlook.com (2603:10b6:805:c8::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [128.224.162.175] (60.247.85.82) by HK2PR02CA0146.apcprd02.prod.outlook.com (2603:1096:202:16::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.14 via Frontend Transport; Mon, 16 Mar 2020 11:01:15 +0000 X-Originating-IP: [60.247.85.82] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d904ece3-2459-439c-ba3c-08d7c9995b3f X-MS-TrafficTypeDiagnostic: SN6PR11MB3504: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 03449D5DD1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(376002)(136003)(366004)(39850400004)(396003)(199004)(31686004)(4326008)(36756003)(6666004)(7416002)(478600001)(186003)(5660300002)(16526019)(2906002)(6486002)(16576012)(316002)(8676002)(26005)(81166006)(6706004)(81156014)(53546011)(2616005)(66946007)(66476007)(66556008)(86362001)(8936002)(31696002)(52116002)(6916009)(956004)(78286006);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR11MB3504;H:SN6PR11MB3360.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; Received-SPF: None (protection.outlook.com: windriver.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eBmOEcDepPr3tU3FnqpbpCAyXpOHgr9r0W8J5Qo6vc3+ycCbdCKsVV8Nxc9P34BhwnngYM6Tfoe8wIhbxRvrMp7BKScnBh7zaMFwRSZTqk4TP0WH7V5JJprJ+N9/xYyQfUGL3BfEQpEW8mEHPhKeAslctifdzBy+rOiG+zxS69lJHougzyWCDGF/hi9JpazMX58h4KC5PiwpY+AW4Fo64kjvPXYpIT+EWFNKAYJFgN6ZsXoJoQIPrVYFJnPKXXH0kGOkDNLzIaKGn1+MCZCV4wWh2B9ai1CEx/+6l4D1Elak1dsZngfIUWhp0l1Zpm6LWs5Djq3/I6d4BXdWSXRI5g1UI5HuMr9wQ1U4YJU/CC11WfiLT8OO3VGqyijzmZ4oIZyvhSG0UXbGY8k9DKNN2G5PcVRRWsjX0oUbA37vWzEcVXoCrbcVbY2qCNjismuC7Hy2XBaT4T8PEtNlcmq1Ljp3W5Ld6IiOgOpMl+0vvIwqv2EBRRC5BietA0/E2g3kVoHwI+uFGNcX4ViX/wumsjsgIVRaI+LRl3OjIf6uDoI= X-MS-Exchange-AntiSpam-MessageData: AD3zQnz9QSrZUDzL+8Oyc5goDOgeP6J1GlSdpWeC4fCDldtM8kiLEvTmBckJ4qQ6D08qy7FOYpsrZOmisjxqXEvGB+NXnDut8jCD8kybYVJx0wdy5MTnwdW0fed9ZTDgHJBKFN5g6FDkoX1N5lU+fA== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: d904ece3-2459-439c-ba3c-08d7c9995b3f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Mar 2020 11:01:19.7195 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UvXwwcoyfs8EhRtIMSvg4teBwbDSXqfbNFnTaA2B8pZaJhomavJzqIEWtcZZ6OdcRqxp8dUp4osq8rN+kGVkig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3504 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/11/20 11:54 PM, Christoph Hellwig wrote: > On Wed, Mar 11, 2020 at 12:03:43PM +0800, He Zhe wrote: >>>> 979c690d block: move clearing bd_invalidated into check_disk_size_change >>>> f0b870d block: remove (__)blkdev_reread_part as an exported API >>>> 142fe8f block: fix bdev_disk_changed for non-partitioned devices >>>> a1548b6 block: move rescan_partitions to fs/block_dev.c >>> Just to make sure we are on the same page: if you revert all four it >>> works, if you rever all but >>> >>> a1548b6 block: move rescan_partitions to fs/block_dev.c >>> >>> it doesn't? >> After reverting 142fe8f, rescan_partitions would be called in block/ioctl.c >> and cause a build failure. So I need to also revert a1548b6 to provide >> rescan_partitions. >> >> OR if I manually add the following diff instead of reverting a1548b6, then yes, >> it works too. > Ok, so 142fe8f is good except for the build failure. > > Do 142fe8f and 979c690d work with the build fix applied? (f0b870d > shouldn't be interesting for this case). Sorry for slow reply. With my build fix applied, the issue is triggered since 142fe8f. And I can see the endless loop of invalidate and revalidate... Zhe