Search Linux Wireless

Re: mac80211: sta info locking

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

 



On Fri, 2008-02-22 at 10:57 -0500, John W. Linville wrote:
> On Fri, Feb 22, 2008 at 04:16:49PM +0100, Johannes Berg wrote:
> > 
> > > > Hence, I think we can actually get away without more locking if we
> > > > protect the flags better. Should we use a spinlock or the atomic
> > > > set_bit()/clear_bit()/etc. operations?
> > > 
> > > Using the atomic operations seems appropriate to me.
> > 
> > Right, but I figured if we could get rid of the AMPDU spinlocks and just
> > use a single one in total (for flags as well) then that'd be of benefit
> > too; even with the dynamic allocation strategy (see other mail) we'd not
> > need to allocate two more spinlocks for ampdu.
> 
> Yes, I thought that was behind your question.  I'll let Ron comment
> on the AMPDU spinlock usage.

Ok so the mesh code came with a spinlock too, the AMPDU code has two.

Ron/Tomas, does the ampdu MLME really need two spinlocks?

Does anybody have any objections to just having a *single* spinlock per
sta_info and using that everywhere and protect the flags with it too?

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