Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287544
b: refs/heads/master
c: f5c3820
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Feb 10, 2012
1 parent 9cf1a51 commit d90632f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 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: a87dfe14a78501c931a4d5481efff6a809aa907d
refs/heads/master: f5c38208d32412d72b97a4f0d44af0eb39feb20b
6 changes: 0 additions & 6 deletions trunk/net/core/netprio_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,19 +271,13 @@ static int netprio_device_event(struct notifier_block *unused,
{
struct net_device *dev = ptr;
struct netprio_map *old;
u32 max_len = atomic_read(&max_prioidx);

/*
* Note this is called with rtnl_lock held so we have update side
* protection on our rcu assignments
*/

switch (event) {

case NETDEV_REGISTER:
if (max_len)
extend_netdev_table(dev, max_len);
break;
case NETDEV_UNREGISTER:
old = rtnl_dereference(dev->priomap);
RCU_INIT_POINTER(dev->priomap, NULL);
Expand Down

0 comments on commit d90632f

Please sign in to comment.