Skip to content

Commit

Permalink
openvswitch: Use non rcu hlist_del() flow table entry.
Browse files Browse the repository at this point in the history
Flow table destroy is done in rcu call-back context.  Therefore
there is no need to use rcu variant of hlist_del().

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
  • Loading branch information
Pravin B Shelar authored and Jesse Gross committed Aug 23, 2013
1 parent 59a35d6 commit 76a66c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvswitch/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void ovs_flow_tbl_destroy(struct flow_table *table)
int ver = table->node_ver;

hlist_for_each_entry_safe(flow, n, head, hash_node[ver]) {
hlist_del_rcu(&flow->hash_node[ver]);
hlist_del(&flow->hash_node[ver]);
ovs_flow_free(flow);
}
}
Expand Down

0 comments on commit 76a66c7

Please sign in to comment.