Skip to contentSkip to conversation

READ_LOCK?

DISCUSSION zhaoyao 1 participant 1 message Jan 7, 2004 netfilter

lore
Share & tools
lore

zhaoyao

author
#0 lore raw

Harald Welte,您好!

Yes,as you know in 2.4 or 2.6, bh is similar to softirq, WRITE_LOCK is write_lock_bh(&a)
if u write_lock_bh(&a), obviously other cpu can't enter this critical region, but already in softirq, why lock bh again. softirq can't reenter. so lock bh is not useful.

Quoted 11 lines · zhaoyao
Quoted 3 lines

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 8 lines
Quoted 1 line

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

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

= = = = = = = = = = = = = = = = = = = =

        致
礼!

        zhaoyao
        [email protected]
          2004-01-07