All of lore.kernel.org
 help / color / mirror / Atom feed
* why spin_lock_bh() in match routine?
@ 2005-06-30 17:49 Damon Gray
  2005-07-01 23:33 ` Tobias DiPasquale
  0 siblings, 1 reply; 2+ messages in thread
From: Damon Gray @ 2005-06-30 17:49 UTC (permalink / raw)
  To: netfilter-devel


If I'm not mistaken, and I possibly am, the match section of a netfilter 
module is run in softirq context, and the same softirq (not tasklet) can 
run on a *different* CPU but not the same CPU twice. So why is it being 
suggested here that we need to disable bottom halves for match targets.
Seems to me you will be safe with spin_lock() in match() and possibly need 
spin_lock_bh() in at least destroy() and maybe in checkentry(). Am I 
missing some?

-Damon-

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

end of thread, other threads:[~2005-07-01 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-30 17:49 why spin_lock_bh() in match routine? Damon Gray
2005-07-01 23:33 ` Tobias DiPasquale

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.