Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271203AbTGWSGB (ORCPT ); Wed, 23 Jul 2003 14:06:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271200AbTGWSF3 (ORCPT ); Wed, 23 Jul 2003 14:05:29 -0400 Received: from tudela.mad.ttd.net ([194.179.1.233]:5771 "EHLO tudela.mad.ttd.net") by vger.kernel.org with ESMTP id S271194AbTGWSFS (ORCPT ); Wed, 23 Jul 2003 14:05:18 -0400 Date: Wed, 23 Jul 2003 20:20:20 +0200 (MEST) From: Javier Achirica To: Alan Cox cc: Daniel Ritz , Linux Kernel Mailing List , linux-net Subject: Re: [PATCH 2.5] fixes for airo.c In-Reply-To: <1058983403.5516.101.camel@dhcp22.swansea.linux.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 28 On 23 Jul 2003, Alan Cox wrote: > On Mer, 2003-07-23 at 18:56, Daniel Ritz wrote: > > > You cannot use down() in xmit, as it may be called in interrupt context. I > > > know it slows things down, but that's the only way I figured out of > > > handling a transmission while the card is processing a long command. > > > > hu? no. you can do a down() as xmit is never called from interrupt context. and > > the dev->hard_start_xmit() calls are serialized with the dev->xmit_lock. the > > serialization is broken by the schedule_work() thing. > > If you are about to start a long command why not mark the device busy > for transmit before starting ? I thought about that some time ago. The problem I have in some cases is that there are commands that, based on the status of the radio, may be very fast or very long, I didn't think that marking the devide busy "just in case" before every command was very efficient. Javier Achirica - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/