datapath: Remove redundant synchronize_rcu() call.
authorBen Pfaff <blp@nicira.com>
Fri, 26 Jun 2009 19:20:02 +0000 (12:20 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 26 Jun 2009 19:20:19 +0000 (12:20 -0700)
There is no benefit to synchronizing twice, and it might cost us a lot of
time.

datapath/datapath.c

index 2a96161376c45c924bde3481a5fcfe8569fe64c2..e62eaea130e0ce892bdf257862424e75844aeca8 100644 (file)
@@ -285,7 +285,6 @@ static void do_destroy_dp(struct datapath *dp, struct list_head *dp_devs)
                dp_del_port(p, dp_devs);
 
        rcu_assign_pointer(dps[dp->dp_idx], NULL);
-       synchronize_rcu();
 
        /* Wait until no longer in use, then destroy it. */
        synchronize_rcu();