Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757336AbcCRVhI (ORCPT ); Fri, 18 Mar 2016 17:37:08 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:55104 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753708AbcCRVhF (ORCPT ); Fri, 18 Mar 2016 17:37:05 -0400 Date: Fri, 18 Mar 2016 17:37:02 -0400 (EDT) Message-Id: <20160318.173702.788700055531273267.davem@davemloft.net> To: hofrat@osadl.org Cc: joe@perches.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: consolidate lock/unlock into unlock_wait From: David Miller In-Reply-To: <1458293525-16842-1-git-send-email-hofrat@osadl.org> References: <1458293525-16842-1-git-send-email-hofrat@osadl.org> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 18 Mar 2016 14:37:04 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 803 Lines: 25 From: Nicholas Mc Guire Date: Fri, 18 Mar 2016 10:32:05 +0100 > The spin_lock()/spin_unlock() is synchronizing on the adapter->work_lock > as the comment also suggests, which is equivalent to spin_unlock_wait() > but the later should be more efficient. > > Signed-off-by: Nicholas Mc Guire There really is no justification for this change. This is an optimization in a slow-path of the driver. The device is a rarely used older piece of hardware. The amount of testers of this driver is probably approximating zero. So there is only risk of breakage from this change, and absolutely zero upside. Therefore, I'm not applying this patch, and I'd kindly like to ask you to please consider such issues in the future for these kinds of transformations. Thanks.