Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1341299iob; Wed, 4 May 2022 21:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrm/YhSeeEm5otpQKmp8kVtdqIK9wHsX6FJYY4Sozsx9mU5kZIlHMz+RqNByv6ub14KNSW X-Received: by 2002:a17:90a:6d96:b0:1c9:c1de:ef2f with SMTP id a22-20020a17090a6d9600b001c9c1deef2fmr3815031pjk.210.1651726321619; Wed, 04 May 2022 21:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651726321; cv=none; d=google.com; s=arc-20160816; b=E2KB02FsDZ0BRsdj1qol174l8BNRzb2Lbhnr94WqbBK6DyaVEaPeYlU+yU2E/eBgQo tY+bWY9cMC3TYg/nfR1Vd26M/TKv2s+geNAMN2FiwjFLx2gbFaFP6f3FL5lshArbRqiB SzlpUyTJKX39CFyfgUU2cYAixGD3JkwNRXlk2X+ger9jsklyK6UV4mfc64fAVG0mhKID 7Pfyvrd+1DKGtLznOMn2D4uWvt42cw96Nt1zA7I8uqErhYi3wx3RGl3KOI1ZNYHs/G6Y yNLfjdyo2dX5p2JPuqkf8zHBQbEr2T5G5mJSdv81G9rfOHcXFa9L0iIb7UIspL1Xj7oL XncA== 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:dkim-signature; bh=YZ3u0VP+Dmz+bUwsOr46MWuxSWaaRBaF3I0ZydiCLpA=; b=eFhr3xG4k1sbS2UnhgWGmkS0hclGTAJ+MAj7GHe3AKUJcY+hUnU2uKVgUSOPTMwPW4 SNNrSn/YwgKw+2j1N59k1HagidC7V2zOZwapl4bQgCD4+zXSmymmfxfwcyFU/4HgAjzt 8zY/r87mBqI0iCQ+kS/meM9P58bC0njG2+chAwye3cac6rTOTAFuTHO5KaxyDio3aVwZ S4AMvNi0oNuenhXmh2+WED1o+M3qKDRzdXtIN0VIZ2qYdafXdc6ymCncErsOcPCh8O6J O+p1c9vP/h+o0QxhWG0KS6jwAZTzvAF8RrIk/1t3P3qMjuo3OuSGCxapzOpqbgf5XTf8 APmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wDsc0R4s; 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 v6-20020a63bf06000000b003c227716c33si469636pgf.614.2022.05.04.21.51.46; Wed, 04 May 2022 21:52:01 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wDsc0R4s; 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 S234721AbiEEBOb (ORCPT + 99 others); Wed, 4 May 2022 21:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235166AbiEEBOH (ORCPT ); Wed, 4 May 2022 21:14:07 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1A474C79B; Wed, 4 May 2022 18:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=YZ3u0VP+Dmz+bUwsOr46MWuxSWaaRBaF3I0ZydiCLpA=; b=wDsc0R4sL6hPDSTF0noRMQfruf mzz4NVOEq4T1/rAJmnOh6QDn2l/0XMSNDTDGyIGfHQ5zS9HgzG51JGSruyZqaQqfCKhngFbzP/mHg DZ8u9OGlibmBwMEKD7zOeInXcHL6iTbqIc1sSoQyx8UFTYKOchdZ+LltLkiFW85QXJXI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nmQ0b-001Hnn-Jk; Thu, 05 May 2022 03:10:21 +0200 Date: Thu, 5 May 2022 03:10:21 +0200 From: Andrew Lunn To: Ansuel Smith Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Pavel Machek , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [RFC PATCH v6 07/11] leds: trigger: netdev: use mutex instead of spinlocks Message-ID: References: <20220503151633.18760-1-ansuelsmth@gmail.com> <20220503151633.18760-8-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503151633.18760-8-ansuelsmth@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, 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 > @@ -400,7 +400,7 @@ static int netdev_trig_notify(struct notifier_block *nb, > > cancel_delayed_work_sync(&trigger_data->work); > > - spin_lock_bh(&trigger_data->lock); > + mutex_lock(&trigger_data->lock); I'm not sure you can convert a spin_lock_bh() in a mutex_lock(). Did you check this? What context is the notifier called in? Andrew