mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* preempt_disable and softirq
@ 2011-08-07  2:03 Venkat Subbiah
  2011-08-08 13:08 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: Venkat Subbiah @ 2011-08-07  2:03 UTC (permalink / raw)
  To: linux-kernel

Does disabling preemption by calling preempt_disable() cause softirqs
on the local cpu to be disabled too?

I believe drivers napi polling functions is being called when the
current cpu is holding on to a read lock of tasklist_lock. read_lock()
itself disables preemption.

An easy way to check in the napi polling functions that the current
cpu is not holding on to tasklist_lock? Of course this is mute if
softirqs itself cannot execute when premption is disabled.

PS: I am not subscribed to the groups. Please CC me on your answer.

Thanks,
Venkat

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

* Re: preempt_disable and softirq
  2011-08-07  2:03 preempt_disable and softirq Venkat Subbiah
@ 2011-08-08 13:08 ` Peter Zijlstra
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2011-08-08 13:08 UTC (permalink / raw)
  To: Venkat Subbiah; +Cc: linux-kernel

On Sat, 2011-08-06 at 19:03 -0700, Venkat Subbiah wrote:
> Does disabling preemption by calling preempt_disable() cause softirqs
> on the local cpu to be disabled too? 

No.

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

end of thread, other threads:[~2011-08-08 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-07  2:03 preempt_disable and softirq Venkat Subbiah
2011-08-08 13:08 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome