Search Linux Wireless

Re: [PATCH 2/2] mac80211: protect skb_queue_len(&ps->bc_buf) by lock

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

 



On Wed, 2014-02-19 at 14:35 +0100, Stanislaw Gruszka wrote:

> > It ultimately makes no difference at all, it just makes this code more
> > difficult to read and understand.
> 
> It make difference when queue length value is modified on different CPU
> and read on different CPU. Without lock you can 'see' old length value
> on CPU that run ieee80211_tx_h_multicast_ps_buf() for undefined
> period of time (ok maybe not undefined on x86), and current oldest
> frame can be not necessarily dropped.

I don't see how that can be true, since the modifications of the queue
length are under spinlock with the implied memory barriers.

johannes

--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux