* Re: FIX ME locking is implemented?
[not found] <54709610.6020502@gmail.com>
@ 2014-11-22 14:41 ` Kalle Valo
0 siblings, 0 replies; only message in thread
From: Kalle Valo @ 2014-11-22 14:41 UTC (permalink / raw)
To: nick; +Cc: linville, linux-wireless, netdev, linux-kernel
nick <xerofoify@gmail.com> writes:
> I am wondering why the fix me in the code below still exists as this
> code is clearly being locked properly with a spin lock on the lock
> related to the created linked list in this code.
It would be nice to mention what driver and file you are referring to.
So this is from ath6kl_tx_queue_full() in
drivers/net/wireless/ath/ath6kl/txrx.c.
> /* FIXME: Locking */
> spin_lock_bh(&ar->list_lock);
> list_for_each_entry(vif, &ar->vif_list, list) {
> if (vif->nw_type == ADHOC_NETWORK ||
> action != HTC_SEND_FULL_DROP) {
> spin_unlock_bh(&ar->list_lock);
>
> set_bit(NETQ_STOPPED, &vif->flags);
> netif_stop_queue(vif->ndev);
>
> return action;
> }
> }
> spin_unlock_bh(&ar->list_lock);
Most probably someone just forgot to update the comment, patches welcome :)
--
Kalle Valo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-22 14:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <54709610.6020502@gmail.com>
2014-11-22 14:41 ` FIX ME locking is implemented? Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox