Skip to contentSkip to conversation

READ_LOCK?

DISCUSSION zhaoyao 2 participants 2 messages Jan 4, 2004 – Jan 6, 2004 netfilter

lore
Share & tools
lore

zhaoyao

author
#0 lore raw

netfilter-devel,hello!
In init_conntrack, why will READ_LOCK or WRITE_LOCK, we'are already in bh, why lock it again?

          2004-01-04

#1 lore raw
Quoted 3 lines · zhaoyao

netfilter-devel,hello!
In init_conntrack, why will READ_LOCK or WRITE_LOCK, we'are already in bh, why lock it again?

ip_conntrack is part of netfilter, which in turn is part of the 2.4.x and 2.6.x kernel. Both 2.4 and 2.6 kernel series don't have a 'bottom half' for the network stack anymore. Instead, softirq's are used. Softirq's are fully parallelized, i.e. they can run on any number of cpu's simultaneously.

Quoted 1 line

????????????????????2004-01-04

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie