Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3278842lfo; Mon, 23 May 2022 00:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFzUY/7VGn8+VGRH8Wcc8dTn5ssmf2GDeoU0dvoxoRwAlzMF6LKV6vxBo6PtRAE7xpQjYt X-Received: by 2002:a63:4663:0:b0:3fa:7e32:3eef with SMTP id v35-20020a634663000000b003fa7e323eefmr1023581pgk.117.1653291180803; Mon, 23 May 2022 00:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291180; cv=none; d=google.com; s=arc-20160816; b=ygCfab7HDzh967eF/THo2/qKESD9JFhGZovwb+FnAh20EOSOOxFmKMcIyX5LneL2x1 sch39UEeylquLDRxot9EpoxFDnyhD79it5CtwwcdYTmyzvChRygI8pR62fEogaWnqHjN CbEMFE6ciHxlv27t4pNOuzLVTwW0ETkCw+cVldxMqVKOiCH9NDy/+O3e9uVMU+X5mPO1 Af/XgMRRiWhYbJk3A66T5IwJr2LE+YQYHg2UoW5U4xmUJ9f8jciCWTM6JSD0GPhdITxb mAhx3AyqPG8Yf0NGKW/NZsvw2BFkoaFmKxfjfU2VsOdk/aTD84oCMR7cmdjOZUj40e6J 0h3w== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=GOYXD1sYDOhp9q7IO1/8ljkbnw7MeTX9lQTHbFBQ/BI=; b=bA9yOWbBCc+vaYLJUxXIe6Z6Ypf7mtq0RjarFg3yKgZTMgkhz9wKwCZZRskAB/hQHb KIbg+H0J5OAQoNTboCTteUJP/fFlaGTSGiQpOzymO6OFJxpqE5i+zdeg/bmUPC+NmIYA Cxh41ubuxqHyY/B3VHwCFvIUKpPPbAhr3HoeZNZA8/V94eM9t9ZgQHIyA/bEWiSFvrTO K4AYLoaU5u7brwoxGNc+QTSz3aEPUvND0vcQGxSyc0id/8H131n+wXFxMRlp5xgXSohP iqmzDa4MVFc992VFcUUxdPRoMxOYzern+Lo8Ajz7J95Mkp1a9DfiXqsXdFevCtiYhr9a 3JVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o09q9TxC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b1-20020a170902d40100b0016168e90f2fsi7957819ple.501.2022.05.23.00.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o09q9TxC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF151169E3D; Sun, 22 May 2022 23:44:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236205AbiEUJuu (ORCPT + 99 others); Sat, 21 May 2022 05:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiEUJut (ORCPT ); Sat, 21 May 2022 05:50:49 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D4B2629; Sat, 21 May 2022 02:50:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id DD8DDCE2E69; Sat, 21 May 2022 09:50:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 925E9C385A5; Sat, 21 May 2022 09:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653126642; bh=uaaM0Cjy5At+m2+2W/vgkDuhCtA4C/pIjvqMBjYomig=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o09q9TxCsHyoaxP7s7m9wOfm92doxcU2km+pAfK8RjYrhAAzHnJLrEfbgwF9KYOBP 1Qu/li89M7DFkzk290qsvpliMSyhV3C0xOqtuFhxxs648Sm3O187acMFgDZBr0C9gc E7T0bAgUKTMHut585ymJeL+x8YKxcgYdASW3dJ7engXCX6fv+2FkNbiozKZeKofwfI o4pYFI2lGuM7s8UTrkfjimXl1CGXegAsy9L7bS+q52XJ8RBtD4He+WMvzofLHgIQsY Ndv/rpIHRd3Rzu49aYzcpKPksrNM8VqC0B+kzFyPRUtOkZTLiyWaxP1nq3Ivggvza5 U2i2Oscw71Z/Q== Date: Sat, 21 May 2022 11:50:38 +0200 From: Wolfram Sang To: Alexander A Sverdlin Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: core: Workaround false-positive LOCKDEP in delete_device Message-ID: Mail-Followup-To: Wolfram Sang , Alexander A Sverdlin , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220517075518.43613-1-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DSqDDRpdOPhPZOr7" Content-Disposition: inline In-Reply-To: <20220517075518.43613-1-alexander.sverdlin@nokia.com> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --DSqDDRpdOPhPZOr7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > + /* > + * We drop the mutex here, because device unregister > + * will take sysfs lock (kn->count) which, as LOCKDEP > + * would think, depends on this mutex > + */ I have to ask: can't lockdep be fixed or the lock somehow be annotated to prevent the false positive? --DSqDDRpdOPhPZOr7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmKIte4ACgkQFA3kzBSg Kbbjiw//S6QYqyXF0+7giGEfdZSOTR/kUqvRR/PLW1gAJE1nxbySa2Muoc0CwBHB bi5zD9vQzRDMXnXKCFWpmXjjK7ootaSoo0wqKic/takinhfJn2P2+MTOtQbNhyEX fjSHkc/MZN7cfimLU0PhXXBBFq+ixiqMR3TCwJ0SmLsOfyW00OHGkm2d0YgyRDjn ahgwhAwmzMGHhyPfqsoLhyp9nu88RinNwvMiljCuLlGPZ8ykSV3gg6oEpcIaAkq/ iLiNiLN8Zfy91FP/5Rk1ZLdonCq8VDIY9/wiu9V5BF9Yr1+MhLTbeDk19EEfVlHh xH7CPbf29vkSIlYEnd/e6zeQEan+NY1fuZDPktoE0drz8TMM0e1fZKtwdaUNcGqO 0mgrF+GpWdcyVthKcJ316+O3xZ5xlYJivchsFsrm8iMvBWTR5fJXJ8PLwsd/oeKA fGojnGmMXG9p2MWsM55AZOtgrXtMPmfnrVHemu2f9aK8RCkjkO37vPwkpiun6hbS VnQBeQfrOvtPPVHiD44IYq6wM2HmmLM5GLbsNoXiZFQs16lOlGl3MkQ2WspvyVk7 WOb+RPcpVCjFKed3U+az2Swltzu8irw2akBaHv6jmfvpDn8dQ+YThpNVR43hECGr AEtqW/6F1HzE6F3wibSIPoub+OBGsZR8dlRTZhuxiHd9fZ7+gT8= =gAZT -----END PGP SIGNATURE----- --DSqDDRpdOPhPZOr7--