Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:57248 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759467AbcBYKAu (ORCPT ); Thu, 25 Feb 2016 05:00:50 -0500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Subject: Re: [1/2] b43: Remove unnecessary synchronize_irq() before free_irq() From: Kalle Valo In-Reply-To: <1454964073-25108-1-git-send-email-lars@metafoo.de> To: Lars-Peter Clausen Cc: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Larry Finger , Chaoming Li , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, Lars-Peter Clausen Message-Id: <20160225100049.E4F4F6089B@smtp.codeaurora.org> (sfid-20160225_110055_188739_5BB1121D) Date: Thu, 25 Feb 2016 10:00:49 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: > Calling synchronize_irq() right before free_irq() is quite useless. On one > hand the IRQ can easily fire again before free_irq() is entered, on the > other hand free_irq() itself calls synchronize_irq() internally (in a race > condition free way), before any state associated with the IRQ is freed. > > Patch was generated using the following semantic patch: > // > @@ > expression irq; > @@ > -synchronize_irq(irq); > free_irq(irq, ...); > // > > Signed-off-by: Lars-Peter Clausen Thanks, 2 patches applied to wireless-drivers-next.git: 10fbc7cf031d b43: Remove unnecessary synchronize_irq() before free_irq() 400b43c58269 rtlwifi: Remove unnecessary synchronize_irq() before free_irq() Kalle Valo