netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about locks in qdisc_restart
@ 2009-04-27 19:48 Tom Herbert
  2009-04-27 20:20 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Herbert @ 2009-04-27 19:48 UTC (permalink / raw)
  To: netdev

In qdisc_restart the qdisc lock is released before taking the
netif_tx_lock, and only acquired again after unlocking the
netif_tx_lock.  There's a comment with the function that
"qdisc_lock(q) and netif_tx_lock are mutually exclusive, if one is
grabbed, another must be free."  Can anyone tell me the motivation for
this restriction?  We are seeing some performance improvements by
holding the lock through qdisc_restart, and I'm not sure why this
would be bad to do.

Thanks,
Tom

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

end of thread, other threads:[~2009-04-27 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-27 19:48 Question about locks in qdisc_restart Tom Herbert
2009-04-27 20:20 ` Eric Dumazet

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