Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752217AbcDYXQu (ORCPT ); Mon, 25 Apr 2016 19:16:50 -0400 Received: from violet.fr.zoreil.com ([92.243.8.30]:58430 "EHLO violet.fr.zoreil.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860AbcDYXQs (ORCPT ); Mon, 25 Apr 2016 19:16:48 -0400 Date: Tue, 26 Apr 2016 01:16:42 +0200 From: Francois Romieu To: Florian Westphal Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jay Cliburn , Chris Snook Subject: Re: [PATCH net-next 2/6] atl1c: remove private tx lock Message-ID: <20160425231642.GA20830@electric-eye.fr.zoreil.com> References: <1461526694-11367-1-git-send-email-fw@strlen.de> <1461526694-11367-3-git-send-email-fw@strlen.de> <20160424220529.GA29377@electric-eye.fr.zoreil.com> <20160425154339.GA17538@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160425154339.GA17538@breakpoint.cc> X-Organisation: Land of Sunshine Inc. User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 27 Florian Westphal : > Francois Romieu wrote: [...] > > Play it safe and keep the implicit local_irq_{save / restore} call ? > > > > It may not be needed but it will help avoiding any unexpected regression > > report pointing at the NETDEV_TX_LOCKED removal change. > > I thought about that but it doesn't prevent the irq handler from > running on another CPU, so leaving it around seemed like cargo culting > to me... I don't mind removing it in a different patch at all. I'd rather see the commit history underline that it's unrelated to whatever NETDEV_TX_LOCKED / LLTX change. > I don't have an atl1c, but the atl1e in my laptop seems to work fine > with the (similar) change. > > If you disagree I can respin with local_irq_save of course, but, if > 'playing it safe' is main goal then its simpler to convert > spin_trylock_irqsave to spin_lock_irqsave. Your call, really. -- Ueimor