Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224432
b: refs/heads/master
c: 9ea1948
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Nov 17, 2010
1 parent 9bd8045 commit f4a1b83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5811662b15db018c740c57d037523683fd3e6123
refs/heads/master: 9ea19481db31d614f729f346bdcf28e4e60ff14a
9 changes: 7 additions & 2 deletions trunk/net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,18 @@ static void rx_queue_release(struct kobject *kobj)


map = rcu_dereference_raw(queue->rps_map);
if (map)
if (map) {
RCU_INIT_POINTER(queue->rps_map, NULL);
call_rcu(&map->rcu, rps_map_release);
}

flow_table = rcu_dereference_raw(queue->rps_flow_table);
if (flow_table)
if (flow_table) {
RCU_INIT_POINTER(queue->rps_flow_table, NULL);
call_rcu(&flow_table->rcu, rps_dev_flow_table_release);
}

memset(kobj, 0, sizeof(*kobj));
dev_put(queue->dev);
}

Expand Down

0 comments on commit f4a1b83

Please sign in to comment.