Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4921194rwn; Mon, 12 Sep 2022 01:04:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR7bzwwlAIbnzOqTfyXkPQUPy+Pe/ZIk1hR6yWPU8bOcayf0Zg36tZfzAYPrXaVMZscSgRUW X-Received: by 2002:a05:6402:7c5:b0:44e:9319:4b26 with SMTP id u5-20020a05640207c500b0044e93194b26mr21123287edy.105.1662969881188; Mon, 12 Sep 2022 01:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662969881; cv=none; d=google.com; s=arc-20160816; b=ZXAN9PKHWBNIsmS193pjPGDk/nSXYngLfNWrxY5F1jNMW502XlMleia5/OuZwZ97Pl a5n2lphpzd31sPwEdGMAZqZYcQjT5oMTwQOMBF69rY22cN4HHsqbEuBue2Ur2J3RBbj7 pAJiLkWQjRvWttlGMXdpFgNGhuq0Ll6Em3Xva68M5LYvg6SmcrvmcVv5HKDDUT0M+EhB pGMfy4kmz26GyKFQyd5y1kDENJ7I1E7SVBi+yxFSCLsgs5fVgMGm3CVLxJ8owAkrzITw DPj1Tw/nrvRnGFkVCuEl0M7APgNlLocWgGFG60kj7qraVLflpmFCVPElqZLC1+mADkIQ Id7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=o0gyjpINLHw7Z2F1xqq837KS2WJph0omHUqLQruvQAM=; b=ce0612Kq5pGcOuKLwt382EG2VXRV/bN3KuZPXvc6ozAJH2GD3j41xmuNZfk1rXGugt X2yrl9gidV+XCdulcFs8vXhnKpN3ufA4SvHOuNfrEIOHJDva8qVToaETcQPm1ED+oZZK VB7venopMwsGbOv+VfTKUgWv401xl9zvzVlFagGyqmDA2qXV1AtUL/SScK1yjV0spMb5 APitS3c62irCLpdnfLD+WhQIcS08nb/w5FC1rIutBGHEB3f4WHakfGei/LZQ6Rf4hYWb KHS05C27MPbyZ6QblxhLS1jdynoeDMXCFsMuwydOowUnYSIoVYMdub0sJ8QCxbgMQcyi uOQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a17090660d300b0073d78bbd49csi5649086ejk.666.2022.09.12.01.04.10; Mon, 12 Sep 2022 01:04:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbiILHTK (ORCPT + 99 others); Mon, 12 Sep 2022 03:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbiILHSf (ORCPT ); Mon, 12 Sep 2022 03:18:35 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28A0F31DC2; Mon, 12 Sep 2022 00:16:50 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B5EA96732D; Mon, 12 Sep 2022 09:16:18 +0200 (CEST) Date: Mon, 12 Sep 2022 09:16:18 +0200 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Dusty Mabe , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org Subject: Re: regression caused by block: freeze the queue earlier in del_gendisk Message-ID: <20220912071618.GA4971@lst.de> References: <017845ae-fbae-70f6-5f9e-29aff2742b8c@dustymabe.com> <20220907073324.GB23826@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 09, 2022 at 04:24:40PM +0800, Ming Lei wrote: > On Wed, Sep 07, 2022 at 09:33:24AM +0200, Christoph Hellwig wrote: > > On Thu, Sep 01, 2022 at 03:06:08PM +0800, Ming Lei wrote: > > > It is a bit hard to associate the above commit with reported issue. > > > > So the messages clearly are about something trying to open a device > > that went away at the block layer, but somehow does not get removed > > in time by udev (which seems to be a userspace bug in CoreOS). But > > even with that we really should not hang. > > Xiao Ni provides one script[1] which can reproduce the issue more or less. I've run the reproduced 10000 times on current mainline, and while it prints one of the autoloading messages per run, I've not actually seen any kind of hang.