Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14116277pxu; Mon, 4 Jan 2021 13:08:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1QlMRuiJn9kTH2aYzQaDgZfE/pATDFo81hyxSqzKHGhKxl5xwaq+iCVmVFjTo5Vj4Zww9 X-Received: by 2002:a50:9f4e:: with SMTP id b72mr73172091edf.200.1609794519618; Mon, 04 Jan 2021 13:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609794519; cv=none; d=google.com; s=arc-20160816; b=kUOebGkSTzd1MuLtSBAEjfWNEyiFWOojd2+LK4Vte875PWGj7YMHfDcW87S8Y3k9Ll wNA3tzIWA5bslYaFw+vE4+lgyFW4qjOhTrDm2wGSxcc0KAg6NP5WiECAtcHHNJ4M8qTB cKOr9B/5UQ8a5i0aE9VwS29yIIbjOFQ0GIbhhx3HKVJHEBfBNf9keAdmpuHXf8WvCkmt 6I5G0ZPbldgq+R2+bLIS6LnVOB960Sz3NVbfxnlQODJR7UGV2SR3pgOselTdbQBTt0Sw Hfye8lfZhIoNjJ/aWOMqdMp8WYg6+cTKmxyAhRxengXblKchzEWuLB2qtyHgzws+ewoD Srng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bR6jvZxlwZx75FH9+AQv4W7XsGdQay5VEN1cV5enm1c=; b=XBnf3MUAjmqP3ZVgreR55La43Z5ZhuySuvG9ik6JMV4NuHNzZugn9bvhBJ77oYBPbB 94PE77M3HYdMf5w7kSx/0nGz1tG51n/GOdsP05NImrgdcuJpCtlq1IIiIGQHEO3ZOaKk SnDRgZiFnE7DPBq0MWRZ+y4VabdaJDLf24rA4S99+XRdsAujv7ixDzSWcBtkIMI4Rt69 QPhVToU/8yZOo4wvxEkRMwMITr9rLV0gWOfHvUUKArSk0+jnxQrFE0LFfHX3+W6F11Pc GTQ+g0AHGn/2LLuAWf26Jnf3pXnALL0jQOz5Ku/BVzs6N/CcxQ0C2niqM6Rol5emNL8g 7U7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si32008719ejd.135.2021.01.04.13.08.15; Mon, 04 Jan 2021 13:08:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbhADVG4 (ORCPT + 99 others); Mon, 4 Jan 2021 16:06:56 -0500 Received: from mx2.suse.de ([195.135.220.15]:33062 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbhADVG4 (ORCPT ); Mon, 4 Jan 2021 16:06:56 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 44B2EAD1B; Mon, 4 Jan 2021 21:06:15 +0000 (UTC) Date: Mon, 4 Jan 2021 18:06:10 -0300 From: Enzo Matsumiya To: Daniel Wagner Cc: Hannes Reinecke , Sagi Grimberg , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Jens Axboe , Keith Busch , Christoph Hellwig Subject: Re: [PATCH] nvme: hwmon: fix crash on device teardown Message-ID: <20210104210610.hliiupywksawgei3@hyori> References: <20201209213228.5044-1-ematsumiya@suse.de> <4ebb1b8c-4bb0-6ebf-3417-d4aee1bdd3a8@suse.de> <20201230143805.2v4izgkzbnisssvr@beryllium.lan> <20201230151653.ozlqlwef7f2tarwz@beryllium.lan> <20201230153138.4f2jd2yd2vkqndby@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201230153138.4f2jd2yd2vkqndby@beryllium.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you all for the feedback. I'll re-evaluate my patch and resubmit it soon. The problem clearly exists as I can easily reproduce it on my test setup, but the strategy to fix it needs some rework apparently. @Daniel maybe try tweaking your tests to use a smaller controller loss timeout (-l option)? I do this on my tests because the default value kicks in about 30min after hot-removal -- i.e. you have to actually wait for the timeout to expire to trigger the bug. Cheers, Enzo