Search Linux Wireless

Re: [PATCH] mac80211: fix addba timer (again...)

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

 




On Wed, 18 Nov 2009, Johannes Berg wrote:
> 
> Linus pointed out that del_timer_sync() isn't actually needed if we make 
> the timer able to deal with no longer being needed when it gets queued 
> _while_ we're in the locked section that also deletes it. For that the 
> timer function only needs to check the HT_ADDBA_RECEIVED_MSK bit as well 
> as the HT_ADDBA_REQUESTED_MSK bit, only if the former is clear should it 
> do anything.

Ok, this looks sane. It's not really worth me Acking it, since I don't 
actually know the code or the hardware, so I can't really judge whether 
this is in any way a good thing.

But from a "design patterns" standpoint it no longer triggers my WTF 
reaction.

It's just bound to be more robust to have the timer just check the state 
of things itself rather than depend on some (complex and almost inevitably 
racy) "timer is only enabled IFF certain-state-is-true" rule.

			Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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