Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp654306ybh; Wed, 11 Mar 2020 08:13:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsjCnZmAbhh5kkVo100z41NQsew9Cwrj/Ll7zsUWeh4KqsWhHHglLektOkrWZ5gwko2h8+S X-Received: by 2002:aca:1c09:: with SMTP id c9mr2332586oic.85.1583939592062; Wed, 11 Mar 2020 08:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583939592; cv=none; d=google.com; s=arc-20160816; b=TPU0XM+S+v2pdSulnd0ij7md23YcOL0KiMdXTpga6nTkt/Js9Ip9Aym7MVgSQ7TYsr 9H4+riBEK7VG68if1OiHuLLyL0RRk7YozB0tycV+0+d253sOJ7OhrFKNeKTxl9gpvf9C 9pguXvxCJmEuIgt3ief17UnbIA679BOCqEm7Q0Glz8ExH9zxyWR2y8Ge4G1bEZG5sTKu la4yB+j08MsKddE1TWkO84kBfgUG+/5kOsLUFIUCdVW3r1C2wIf6WCJK2mzegPXkAduq BoDG1ZCGhhH1+6lz1RCuv6Da5b7M5tJSKhV6rhD+eKWCDnX3Fy0HY3FmRywlHedw6eWb Jq/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=/r2C/wl4a19Q71HLHKFmUuJWTxJS7tNwwD6vqwxwWVI=; b=v10XJFc0PtMAcNryKiyoFmSeElcb8g4ZOHQKVnTC7oizfBMdt3X72FMTprRAaB264T e87UuPFB/58apLDyXGex+tYo0w98ODNiV3RZccOB/TqbfdbB9qhpvqybOmPb/Qnn4v4K R5E/Ge6Xw58b+a3WGQ8W1yCLxRShVl0sdedyaZMWD6ihRpdNI0p1Bl8CNNwkHBkaGXUb WmhNGDNMh8JpwP5gdqCQQWaTIA+zTu+Kwwo/iJEdE+xDf3UPh0/dm/KqfFqjusWUKZdW HMCTOFCO5VEeMYdWjjQKkVLLLmc80IhtLMRg34Nax02yGo9Xph7FZaVp8TuZDZ1q0qB7 Rl8g== 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 h3si208412oop.13.2020.03.11.08.12.55; Wed, 11 Mar 2020 08:13:12 -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; 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 S1729848AbgCKPL1 (ORCPT + 99 others); Wed, 11 Mar 2020 11:11:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:41172 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729521AbgCKPL0 (ORCPT ); Wed, 11 Mar 2020 11:11:26 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 59B93ACA1; Wed, 11 Mar 2020 15:11:24 +0000 (UTC) Message-ID: <47735babf2f02ce85e9201df403bf3e1ec5579d6.camel@suse.com> Subject: Re: disk revalidation updates and OOM From: Martin Wilck To: He Zhe , Christoph Hellwig , jack@suse.cz, Jens Axboe , viro@zeniv.linux.org.uk, bvanassche@acm.org, keith.busch@intel.com, tglx@linutronix.de, yuyufen@huawei.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 11 Mar 2020 16:11:28 +0100 In-Reply-To: <209f06496c1ef56b52b0ec67c503838e402c8911.camel@suse.com> References: <93b395e6-5c3f-0157-9572-af0f9094dbd7@windriver.com> <209f06496c1ef56b52b0ec67c503838e402c8911.camel@suse.com> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-03-11 at 11:29 +0100, Martin Wilck wrote: > On Mon, 2020-03-02 at 11:55 +0800, He Zhe wrote: > > Hi, > > > > 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. > > I've tried to reproduce this, but so far I haven't been able to. > Perhaps because the distro 5.5.7 kernel I've tried (which contains > the > offending commit 142fe8f) has no IDE support - the qemu IDE CD shows > up > as sr0, with the ata_piix driver. I have systemd-udevd 244. Enabling > udisksd makes no difference, the system runs stably. ISO images can > be "ejected" and loaded, single uevents are received and processed. > > Does this happen for you if you use ata_piix? I have enabled the ATA drivers on my test system now, and I still don't see the issue. "hd*" for CDROM devices has been marked deprecated in udev since 2009 (!). Is it possible that you have the legacy udisksd running, and didn't disable CD-ROM polling? Martin