From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00305C433FE for ; Thu, 5 May 2022 01:10:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234561AbiEEBOS (ORCPT ); Wed, 4 May 2022 21:14:18 -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> Precedence: bulk List-ID: X-Mailing-List: linux-doc@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