Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311994
b: refs/heads/master
c: b761c9b
h: refs/heads/master
v: v3
  • Loading branch information
Gao feng authored and David S. Miller committed Jul 9, 2012
1 parent d5a500a commit a9d5d14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: b93984c9afacd4fe32b785d52a93660d91202b10
refs/heads/master: b761c9b1f4f69eb53fb6147547a1ab25237a93b3
3 changes: 2 additions & 1 deletion trunk/net/core/netprio_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ static int get_prioidx(u32 *prio)
return -ENOSPC;
}
set_bit(prioidx, prioidx_map);
if (atomic_read(&max_prioidx) < prioidx)
atomic_set(&max_prioidx, prioidx);
spin_unlock_irqrestore(&prioidx_map_lock, flags);
atomic_set(&max_prioidx, prioidx);
*prio = prioidx;
return 0;
}
Expand Down

0 comments on commit a9d5d14

Please sign in to comment.