Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4673210ybf; Wed, 4 Mar 2020 08:26:57 -0800 (PST) X-Google-Smtp-Source: ADFU+vvXRuCQ0VpdXpGVG30TIz6JoueaUewfXB9peQnxZY2LJizJ6MP0a/IvreZ7maeote4eZEr5 X-Received: by 2002:aca:44b:: with SMTP id 72mr2274692oie.67.1583339217301; Wed, 04 Mar 2020 08:26:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583339217; cv=none; d=google.com; s=arc-20160816; b=S7LVDp4UVtTQ9H/zZrfU013C9XvKDdC895vFJ4uRd/ZYjnZVOVu+s/bqvIq6kTGZOk Y4rnSIoUqxnbzmcGHzorA3XYM7avr3E/GaFRslA21SEVbRaimRDrrtYq7xiousgHAB26 W8zMTI1sGzCdn1Xc331phZax9ULiJkHmk8K2eY18dRDoNXJ1pxF5PHQCNu0BR/2+P8B7 k9Alasn9D3hMbd3SloEc8cjPMrvOvbz/LVfP1MUsYB/KH12z0zk/Avyhl+oV7u7u+zVG AL8ErmVpQZFWFDHK7Ex8FpEFNks5JfgRK0P/rsrrHW27PIJZHQv3df+BJeEt/n3Md4eD hI0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=f0dQPyVvdpYHWz8IyId3ISNsInpNzQkKwBSuyESx9Ik=; b=wuqDTxT/9jVDQDne5RPLfozChYg85FnPsNzlCydvQNkFXwuB9lrXpoCjugYfR0oA6h MCmHeQPIF869ONLlTl+c8QAN5PweG8WLbQb8glBeYetwcoEMlUTMlzuhm6h6xUBzYSEd WE0d1vngzL6Tc8EXPf7IEDhl3WcKVDqLnBpngvbXLJSCwZfCOOpmw7tIYEwfX3tYLsbI 7uk65Dzk6KY8P558lu47TqFODiw1fItPj047DBXBVu6i8mRWT+02QTzsOgKN80NexxiB W8VkS39ZCIB+5+2USq7tZ6F7UF82l/9ATbDqNqkjEtNXuGLbWNw0bprDGiWuT8Ie/hYl lmLA== ARC-Authentication-Results: i=1; mx.google.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 193si1338655oie.51.2020.03.04.08.26.40; Wed, 04 Mar 2020 08:26:57 -0800 (PST) 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; 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 S1729762AbgCDQ03 (ORCPT + 99 others); Wed, 4 Mar 2020 11:26:29 -0500 Received: from verein.lst.de ([213.95.11.211]:55335 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgCDQ03 (ORCPT ); Wed, 4 Mar 2020 11:26:29 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id CBDF168B20; Wed, 4 Mar 2020 17:26:25 +0100 (CET) Date: Wed, 4 Mar 2020 17:26:25 +0100 From: Christoph Hellwig To: Jan Kara Cc: He Zhe , Christoph Hellwig , 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 Subject: Re: disk revalidation updates and OOM Message-ID: <20200304162625.GA11616@lst.de> References: <93b395e6-5c3f-0157-9572-af0f9094dbd7@windriver.com> <20200304133738.GF21048@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200304133738.GF21048@quack2.suse.cz> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2020 at 02:37:38PM +0100, Jan Kara wrote: > Hi! > > On Mon 02-03-20 11:55:44, He Zhe wrote: > > Since the following commit > > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?h=for-5.5/disk-revalidate&id=6917d0689993f46d97d40dd66c601d0fd5b1dbdd > > until now(v5.6-rc4), > > > > If we start udisksd service of systemd(v244), systemd-udevd will scan > > /dev/hdc (the cdrom device created by default in qemu(v4.2.0)). > > systemd-udevd will endlessly run and cause OOM. > > Thanks for report! The commit you mention has this: > > There is a small behavior change in that we now send the kevent change > notice also if we were not invalidating but no partitions were found, which > seems like the right thing to do. > > And apparently this confuses systemd-udevd because it tries to open > /dev/hdc in response to KOBJ_CHANGE event on that device and the open calls > rescan_partitions() which generates another KOBJ_CHANGE event. So I'm > afraid we'll have to revert to the old behavior of not sending KOBJ_CHANGE > event when there are no partitions found. Christoph? Looks like it. Let me figure out how to best do that.