linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* synchronization question about sdata->skb_queue
@ 2017-09-09  1:28 dztemplor .
  2017-09-09  1:35 ` dztemplor .
  0 siblings, 1 reply; 2+ messages in thread
From: dztemplor . @ 2017-09-09  1:28 UTC (permalink / raw)
  To: linux-wireless

Hi, everyone.
I'm a newbie in mac80211 and have a question about synchronization for
sdata->skb_queue.
sdata->skb_queue is shared between ieee80211_iface_work() and  rx
handlers like ieee80211_rx_h_action()
ieee80211_iface_work() runs in process context.
ieee80211_rx_h_action() runs in softirq context.
why there is no spin_lock_bh() in ieee80211_iface_work() when it
dequeues from sdata->skb_queue?
I know the question may sounds stupid, will appreciate if anyone can
explain to me.

Regards,
Spike.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: synchronization question about sdata->skb_queue
  2017-09-09  1:28 synchronization question about sdata->skb_queue dztemplor .
@ 2017-09-09  1:35 ` dztemplor .
  0 siblings, 0 replies; 2+ messages in thread
From: dztemplor . @ 2017-09-09  1:35 UTC (permalink / raw)
  To: linux-wireless

sorry, just realized skb_dequeue() will call spin_lock_irqsave() inside.
please ignore this question.

On Sat, Sep 9, 2017 at 9:28 AM, dztemplor . <zdu.shanghai@gmail.com> wrote:
> Hi, everyone.
> I'm a newbie in mac80211 and have a question about synchronization for
> sdata->skb_queue.
> sdata->skb_queue is shared between ieee80211_iface_work() and  rx
> handlers like ieee80211_rx_h_action()
> ieee80211_iface_work() runs in process context.
> ieee80211_rx_h_action() runs in softirq context.
> why there is no spin_lock_bh() in ieee80211_iface_work() when it
> dequeues from sdata->skb_queue?
> I know the question may sounds stupid, will appreciate if anyone can
> explain to me.
>
> Regards,
> Spike.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-09  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-09  1:28 synchronization question about sdata->skb_queue dztemplor .
2017-09-09  1:35 ` dztemplor .

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).