[NET_SCHED]: qdisc: remove unnecessary memory barriers We're holding dev->queue_lock in qdisc_watchdog_schedule and qdisc_watchdog_cancel, no need for the barriers.
Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit e2459acd7dee06fb4d5e980f26c23d31db0e5de1 tree 47287fb285e9d920392863121e88e69e45779cbb parent 8da4bcec7e54c8344c8fd77c72a61f24ce12cfc3 author Patrick McHardy <[EMAIL PROTECTED]> Fri, 23 Mar 2007 10:31:31 +0100 committer Patrick McHardy <[EMAIL PROTECTED]> Fri, 23 Mar 2007 10:31:31 +0100 net/sched/sch_api.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 5b5bce0..2e863bd 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -322,7 +322,6 @@ void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, psched_time_t expires) ktime_t time; wd->qdisc->flags |= TCQ_F_THROTTLED; - smp_wmb(); time = ktime_set(0, 0); time = ktime_add_ns(time, PSCHED_US2NS(expires)); hrtimer_start(&wd->timer, time, HRTIMER_MODE_ABS); @@ -333,7 +332,6 @@ void qdisc_watchdog_cancel(struct qdisc_watchdog *wd) { hrtimer_cancel(&wd->timer); wd->qdisc->flags &= ~TCQ_F_THROTTLED; - smp_wmb(); } EXPORT_SYMBOL(qdisc_watchdog_cancel); - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html