Search Linux Wireless

Re: [PATCH 07/21] cw1200: queue.*, implementation of TX queues of the cw1200 driver.

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

 




On Fri, 2012-03-02 at 02:41 +0100, Dmitry Tarnyagin wrote:
+static inline void __cw1200_queue_lock(struct cw1200_queue *queue)
+{
+	struct cw1200_queue_stats *stats = queue->stats;
+	if (queue->tx_locked_cnt++ == 0) {
Is there some common lock that prevents this getting corrupted? mac80211
and higher layers do not have any synchronisation between the different
TX queues, and you'll need to call this from a few places ... maybe it
needs to be atomic_t?


__cw1200_queue_lock is always protected by spin_lock_bh(&queue->lock);

Dmitry.

--
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