[PKT_SCHED]: Fix rcu_assign_pointer fallout, use it in the right place
The patch 'RCU: use rcu_assign_pointer()' http://linux.bkbits.net:8080/linux-2.6/diffs/net/sched/sch_api.c@1.39?nav=index.html|src/net/|src/net|src/net/sched|related/net/sched/sch_api.c|cset@1.2287 changed a list_add_tail to list_add_tail_rcu in qdisc_create. It's dev->qdisc not dev->qdisc_list that is protected by RCU, this patch reverts that change. It also removes a misleading comment and replaces the smp_wmb in qdisc_create_dflt by rcu_assign_pointer in dev_activate to document more clearly what is protected. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing
Please register or sign in to comment