Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp619252pxb; Wed, 16 Feb 2022 00:01:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFM3rvc22WmsCnlePD9ekn0yEECJUhXXgPqwY5fJtiel5KuQgCVOZWv5kvDkOnhxK8UzU6 X-Received: by 2002:a05:6a00:188f:b0:4e1:a253:850c with SMTP id x15-20020a056a00188f00b004e1a253850cmr330781pfh.61.1644998503900; Wed, 16 Feb 2022 00:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644998503; cv=none; d=google.com; s=arc-20160816; b=ico8ivdDMVB4v9dttczywR2cLbklxaPnTEGzJxAHNbnKzTfBaON3LDlMGF5RI70bU/ fxn/Lz+vI0Uv8j6mv4WcRctUTvWTAf3ZOhwwpLrx9KlPAWq3lTZs1XYDIn4kiijSTiHL bDEjROgV2UGVCGUDqluflSjPsLKH2ulPQfjNnOde0yl0wNT9Tg39VHHWYB/CjVlK1ODs 0uovcnaHaFff9GfN++AmOHmKviLs7bmITPGAQ44IiEC/8vk+TbPnyaudJLE70H8x17+f ULunMXZISN4r5AkKx+rjgbl8/mkYehitu34903BFqVj1tbyCyCLW4TUDMZn98QBV9A8/ e4Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=7GGMtEIGANtAaJZgWgs4fHi8bEqaZzSeIEHxY3YZQSM=; b=jogEA7ZuQrhV1l+MSatyP2dg3Av+vO0J5oRafcsH/2YmJcTeCVRoKfQndRo7tBUipu Ao2EcYx/Kte9x4UWniAR9h6Rx8FcUUJvQzN7F3diWgtouLCZZM3AQU+gElPbXTj8CRjH WEOzUtTMMUW3eYRZaao/7Cp0mvh02Ydsf4s3OmYruqA93PIckobubns3ooKGYymnCtuK EdKlhiXt+QXBbJZ+9B+i4uFnBb+3TDBwqDv4EMmahut7Yz87RQ6qeOrEvs5SJKr9UOT5 KaFeu9satuEqkpYgFY0bZxxr2njizR/7gluvX2Xtc/qbLOlQsyUFV7xe/6iAMyP4oZko U2fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m54ylZrQ; dkim=neutral (no key) header.i=@suse.de header.b=i5cHX04e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l190si2866097pgd.543.2022.02.16.00.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:01:43 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m54ylZrQ; dkim=neutral (no key) header.i=@suse.de header.b=i5cHX04e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3F2914012; Tue, 15 Feb 2022 23:35:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230161AbiBPHfW (ORCPT + 99 others); Wed, 16 Feb 2022 02:35:22 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:36472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiBPHfU (ORCPT ); Wed, 16 Feb 2022 02:35:20 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481DE17185C; Tue, 15 Feb 2022 23:35:08 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3D0651F37D; Wed, 16 Feb 2022 06:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644993565; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7GGMtEIGANtAaJZgWgs4fHi8bEqaZzSeIEHxY3YZQSM=; b=m54ylZrQ963wIR6zi/BQOguiJ0LS7VKESk6EZVzEEtdNitM7NhSeOR6d8YfWns9fyd+rKO JQf8TMGuCoyo6S5CNhgOtJi4Pr7kJ2boPw9pJnDQjgv+PrGMTZgLqzMGym7//FPLFmH3hz GMdFeegXjZsFRhDkJm5JwTpI0ta8AIE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644993565; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7GGMtEIGANtAaJZgWgs4fHi8bEqaZzSeIEHxY3YZQSM=; b=i5cHX04eaVceesCbkAEE3R3DVeOG/2Qc1y6CzyyOpK21iDbNYaNV813kGh1GjuqRkR6YDM AcIAcFu6O9glNJBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0673213A1A; Wed, 16 Feb 2022 06:39:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hQkqAB2cDGLUIwAAMHmgww (envelope-from ); Wed, 16 Feb 2022 06:39:24 +0000 Message-ID: Date: Wed, 16 Feb 2022 07:39:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [RFC PATCH] nvme: prevent hang on surprise removal of NVMe disk Content-Language: en-US To: Christoph Hellwig , =?UTF-8?Q?Markus_Bl=c3=b6chl?= Cc: Keith Busch , Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Roese References: <20220214095107.3t5en5a3tosaeoo6@ipetronik.com> <20220215191731.GB25076@lst.de> From: Hannes Reinecke In-Reply-To: <20220215191731.GB25076@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 2/15/22 20:17, Christoph Hellwig wrote: > On Mon, Feb 14, 2022 at 10:51:07AM +0100, Markus Blöchl wrote: >> After the surprise removal of a mounted NVMe disk the pciehp task >> reliably hangs forever with a trace similar to this one: > > Do you have a specific reproducer? At least with doing a > > echo 1 > /sys/.../remove > > while running fsx on a file system I can't actually reproduce it. You should be able to reproduce it doing a PCI hotplug from qemu. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer