patch-2.2.5 linux/net/sched/sch_prio.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/sched/estimator.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.4/linux/net/sched/sch_prio.c linux/net/sched/sch_prio.c
@@ -195,9 +195,9 @@
 			struct Qdisc *child;
 			child = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops);
 			if (child) {
-				net_serialize_enter();
 				child = xchg(&q->queues[band], child);
-				net_serialize_leave();
+				synchronize_bh();
+
 				if (child != &noop_qdisc)
 					qdisc_destroy(child);
 			}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)