nfsd4: simplify lease/grace interaction
[safe/jmp/linux-2.6] / net / sched / sch_dsmark.c
index 3f9427a..d303daa 100644 (file)
@@ -68,7 +68,8 @@ static int dsmark_graft(struct Qdisc *sch, unsigned long arg,
        }
 
        sch_tree_lock(sch);
-       *old = xchg(&p->q, new);
+       *old = p->q;
+       p->q = new;
        qdisc_tree_decrease_qlen(*old, (*old)->q.qlen);
        qdisc_reset(*old);
        sch_tree_unlock(sch);