Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10623988pxu; Wed, 30 Dec 2020 07:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSoWnK6J5tTCOFBT+3LO59+T2MHGb2LiztnsH2OK9qI4CLJQmTr/M1uZzCNtmhuq5IOWPf X-Received: by 2002:a17:906:26d7:: with SMTP id u23mr39395669ejc.210.1609341586561; Wed, 30 Dec 2020 07:19:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609341586; cv=none; d=google.com; s=arc-20160816; b=uWAf65JFe2jtyQ7tNzxQI19SYYMyYRSK+28DvbAOGvQwXHKZ4zt2Tu8wTn0mH09naw uoPBqzjEM5tqYIjYDDPlgrykWi/VHs35pcpDlYOUtEj8bfqX1ouAPNBcf/l4N/2G57FR F9ZtBStetuOplb3aupfoRpFLTspRTQyK99Y0JEyN3QBOS6WNiRNkTcwgxWDVeMrJLWhs /iyrnYa2sdSBxflHBHn1Yarl3i0uC1vAm8e7PX20dYCttnIQxopuFexmOZvo+zNtB3rf +1SWdlttddhvtV4TKTa4fZxNw692JIM1UvSOFmGBu+TErlmGBBl+V8Q129wtnfLfIMYz F7qg== 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=yyiAE5N/oWZakGzINiJZx8Q6oWz12D95slJxOKKhP7I=; b=SO+aZrwK0/s7SXa61jfj4iyoVCs/maHMV46feyOVWrMGxmvduCy7/toPy+ESLdY4eB GUWGh3noE49LkPOlewKLLl/x1CV435XUITwKivy9ZgA+L0LdfpMl7QNcWsztNyxKd5nO RuXkevZTOEzR0OBbslIA/qaeWMea6CgHtUFawH5fwA8uJU5LyLXf6zTvAAmZ1ijUDdvR rKbRP0/L8nUZxZ9DfO1LbzN8XmgXejZfMQcguCW46LbbuExLVShEriQ8gidqzzRCeFwv /rCjrfn7HCtq+oZFGqZZCY6aIrBSm60eIIsWOtD5BJkku5w3vhU2xHUcAzZPNk9akGIk 8f5g== 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 o3si22777780eda.133.2020.12.30.07.19.23; Wed, 30 Dec 2020 07:19:46 -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 S1726469AbgL3PRf (ORCPT + 99 others); Wed, 30 Dec 2020 10:17:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:41278 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgL3PRf (ORCPT ); Wed, 30 Dec 2020 10:17:35 -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 BF456AE53; Wed, 30 Dec 2020 15:16:53 +0000 (UTC) Date: Wed, 30 Dec 2020 16:16:53 +0100 From: Daniel Wagner To: Hannes Reinecke Cc: Sagi Grimberg , Enzo Matsumiya , 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: <20201230151653.ozlqlwef7f2tarwz@beryllium.lan> References: <20201209213228.5044-1-ematsumiya@suse.de> <4ebb1b8c-4bb0-6ebf-3417-d4aee1bdd3a8@suse.de> <20201230143805.2v4izgkzbnisssvr@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230143805.2v4izgkzbnisssvr@beryllium.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 03:38:05PM +0100, Daniel Wagner wrote: > I've enabled CONFIG_DEVRES_DEBUG and see only 'DEVRES ADD' message. If I > read it correctly the problem is that the resource is attached to the ctl > devm object and not for the nvme devm object. I've attached the hwmon to the nvme object, which fixes the obvious problem. But I still don't see any 'DEVRES REM' message. This would indicate the nvme object never really goes away... more debugging...