Search Linux Wireless

Re: [PATCH 6/6] ar9170: stop data queues on channel switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-05-12 at 17:15 +0200, Christian Lamparter wrote:
> On Tuesday 12 May 2009 08:39:49 Johannes Berg wrote:
> > On Tue, 2009-05-12 at 01:09 +0200, Christian Lamparter wrote:
> > 
> > > +		if ((ar->tx_stats[i].len < ar->tx_stats[i].limit) &&
> > > +		    (ieee80211_queue_stopped(ar->hw, i)))
> > > +			ieee80211_wake_queue(ar->hw, i);
> > 
> > There's no reason to test _stopped first, and doing so is racy.
> uhh, agreed _stopped is not necessary, but where's the race condition?

Well if _stopped returns false but you were just about to stop you're
now racing against whoever is stopping.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux