From a9d5d14cfc64688e53f791fd56390af51253e491 Mon Sep 17 00:00:00 2001 From: Gao feng Date: Wed, 4 Jul 2012 23:28:40 +0000 Subject: [PATCH] --- yaml --- r: 311994 b: refs/heads/master c: b761c9b1f4f69eb53fb6147547a1ab25237a93b3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/core/netprio_cgroup.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 70b6b895fdb0..33c1979d39ce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b93984c9afacd4fe32b785d52a93660d91202b10 +refs/heads/master: b761c9b1f4f69eb53fb6147547a1ab25237a93b3 diff --git a/trunk/net/core/netprio_cgroup.c b/trunk/net/core/netprio_cgroup.c index 5b8aa2fae48b..aa907ed466ea 100644 --- a/trunk/net/core/netprio_cgroup.c +++ b/trunk/net/core/netprio_cgroup.c @@ -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; }