Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2617888pxb; Sun, 17 Oct 2021 20:39:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2diWh1Vxq2mzPscbx+ZYiNJWAjsuOYoVQ5E58c0WwtPEl7ZSq+yLPbPEt1JuJVeRw3dPf X-Received: by 2002:a62:2984:0:b0:44b:b8fe:9454 with SMTP id p126-20020a622984000000b0044bb8fe9454mr26595823pfp.36.1634528388482; Sun, 17 Oct 2021 20:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528388; cv=none; d=google.com; s=arc-20160816; b=Qmiy9RqrynVM0n95OKQUTyhMYA++3LZ49BgaJ6V6x9COlPySsWgI889EVF7mU2rxco z/em6HY90kFdUsmh+Ra/eO/RCyZzxRxVzuQduGUctyOhyP6IuxV4s/q3F8q3ntCSG414 FGLpcNhE7m2CmXzjMZZu5YZ1qFPgEXYPNN/xBjDnSNE9r7lTtGhbCplfG3s81hW2lY8L dumUM8iFVS/rwnXD8xRPDaceXB85L65aaQpHtdPKpRdesuAJ3jPStdR7h1sOLHPPt0Ab oj4i4qhcJtKy4dkmf3I+bUMqvlWpxPLYq2B6DlDtsHrKrAlB0Keqe4sMCbLJuVmeJtwp UOXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qUQR/nPhWlF8WaqCMJXIqyfMUvBxNFbRYdI1MwZS1WY=; b=AqyRFG9+cATxkBKfrj1sPzp2/aAlAQn7EY85i+9Yws97Cd5O3zAHwT3X+ElI12sLd8 HE5BeODfG/ceBMTwF9mTMueZuyO1ibPzEjyEdW8AC/gQ7m5+kql+l4rEMb17JjLbOhiK fgHGnUO/9drLYTynaLXr26MYzR+P6lCwZwbIiQC/0qQYz7Ub3HmFYNWKIybiZ4urdNnf GAGhk4ERbTA79Pd6md75xTfF+JyIgTebeotGPnnHMhsBrVnjyGqt0JYPYTGFUKn6j+i3 FXPeg+kj2UWR65dNjJ3SbwBEq/cKtTS56u0R+B13Egz8bdBHI0eKl+dCTi8nXEN7jPf4 nRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@datenfreihafen.org header.s=2021 header.b=KdLBrZmq; 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 i70si8476377pge.600.2021.10.17.20.39.36; Sun, 17 Oct 2021 20:39:48 -0700 (PDT) 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; dkim=pass header.i=@datenfreihafen.org header.s=2021 header.b=KdLBrZmq; 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 S244638AbhJPVD2 (ORCPT + 98 others); Sat, 16 Oct 2021 17:03:28 -0400 Received: from proxima.lasnet.de ([78.47.171.185]:43072 "EHLO proxima.lasnet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235040AbhJPVD1 (ORCPT ); Sat, 16 Oct 2021 17:03:27 -0400 X-Greylist: delayed 378 seconds by postgrey-1.27 at vger.kernel.org; Sat, 16 Oct 2021 17:03:26 EDT Received: from [IPv6:2003:e9:d74b:bb6b:a631:44a4:c3ee:c1f5] (p200300e9d74bbb6ba63144a4c3eec1f5.dip0.t-ipconnect.de [IPv6:2003:e9:d74b:bb6b:a631:44a4:c3ee:c1f5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@datenfreihafen.org) by proxima.lasnet.de (Postfix) with ESMTPSA id F26E3C079E; Sat, 16 Oct 2021 22:54:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datenfreihafen.org; s=2021; t=1634417697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qUQR/nPhWlF8WaqCMJXIqyfMUvBxNFbRYdI1MwZS1WY=; b=KdLBrZmqOdV50YlWqGRdtT78UkdBLzKONXo8WMq+VB8RAHkWyodv/rcZAYYgtDPcnqmIi+ AoqCb/mFpn1zu8vVuEVjBON/858oqdS2nL5Wa9eTEDEYYCrU/cRIx8NapcJ0r/djFuh4j5 MOTpdMnoncEd6ngRaCa+PLfHMZH1na25PNM1j7zPDK5y91zLISJHkNJv2IQ4uKSnDNPMfg qbhs75QF/NvJsqH/ci//Fim/xBAKzJydXse3euKtjW0Io7nWbVUS6acwRP5IM8Rbc9bhFy r3xQm1g2cKbWhYgSdy41XnkftEz2xqsKGhIondi3NTmfjMrpZ58ZA57NXWGvFw== Subject: Re: [PATCH] ieee802154: Remove redundant 'flush_workqueue()' calls To: Christophe JAILLET , h.morris@cascoda.com, alex.aring@gmail.com, davem@davemloft.net, kuba@kernel.org Cc: linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: From: Stefan Schmidt Message-ID: <0a080522-a30b-8b78-86d2-66c1c1a5f604@datenfreihafen.org> Date: Sat, 16 Oct 2021 22:54:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Dave, Jakub. I have nothing else in my ieee802154 tree for net right now so it would be great if you could take it directly. If that poses a problem, let me know and I will get it in through my tree. On 14.10.21 20:26, Christophe JAILLET wrote: > 'destroy_workqueue()' already drains the queue before destroying it, so > there is no need to flush it explicitly. > > Remove the redundant 'flush_workqueue()' calls. > > This was generated with coccinelle: > > @@ > expression E; > @@ > - flush_workqueue(E); > destroy_workqueue(E); > > Signed-off-by: Christophe JAILLET > --- > drivers/net/ieee802154/ca8210.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c > index 3a2824f24caa..ece6ff6049f6 100644 > --- a/drivers/net/ieee802154/ca8210.c > +++ b/drivers/net/ieee802154/ca8210.c > @@ -2938,9 +2938,7 @@ static int ca8210_dev_com_init(struct ca8210_priv *priv) > */ > static void ca8210_dev_com_clear(struct ca8210_priv *priv) > { > - flush_workqueue(priv->mlme_workqueue); > destroy_workqueue(priv->mlme_workqueue); > - flush_workqueue(priv->irq_workqueue); > destroy_workqueue(priv->irq_workqueue); > } > > Thanks Christophe for spotting and fixing this. Signed-off-by: Stefan Schmidt regards Stefan Schmidt