Glauber Costa
1398eee082
net: decrement memcg jump label when limit, not usage, is changed
...
The logic of the current code is that whenever we destroy
a cgroup that had its limit set (set meaning different than
maximum), we should decrement the jump_label counter.
Otherwise we assume it was never incremented.
But what the code actually does is test for RES_USAGE
instead of RES_LIMIT. Usage being different than maximum
is likely to be true most of the time.
The effect of this is that the key must become negative,
and since the jump_label test says:
!!atomic_read(&key->enabled);
we'll have jump_labels still on when no one else is
using this functionality.
Signed-off-by: Glauber Costa <glommer@parallels.com>
CC: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-12 12:27:59 -08:00
..
2012-01-08 13:21:22 -08:00
2011-12-12 19:04:11 -05:00
2011-11-12 18:13:32 -05:00
2011-12-28 15:06:58 -05:00
2011-10-11 18:43:53 -04:00
2011-05-08 13:48:57 -07:00
2012-01-12 12:26:56 -08:00
2011-04-22 11:04:14 -07:00
2011-06-09 20:38:07 -07:00
2011-03-24 18:06:47 -07:00
2011-12-04 22:43:33 +01:00
2011-09-16 17:42:26 -04:00
2012-01-12 12:26:56 -08:00
2011-08-02 04:29:23 -07:00
2011-10-13 16:05:07 -04:00
2012-01-12 12:26:56 -08:00
2011-12-11 18:25:16 -05:00
2012-01-11 12:56:06 -08:00
2010-07-12 12:57:54 -07:00
2011-08-06 18:33:19 -07:00
2011-10-19 03:10:46 -04:00
2011-10-31 19:30:28 -04:00
2011-08-06 18:33:19 -07:00
2011-11-23 19:19:32 -05:00
2011-12-02 14:57:31 +01:00
2011-12-11 18:25:16 -05:00
2011-06-21 20:33:34 -07:00
2011-11-23 19:19:32 -05:00
2011-12-05 15:20:19 -05:00
2011-12-11 18:25:16 -05:00
2011-04-22 11:04:14 -07:00
2011-12-23 17:13:56 -05:00
2012-01-12 12:26:56 -08:00
2012-01-12 12:26:56 -08:00
2012-01-09 14:46:52 -08:00
2011-12-12 19:04:10 -05:00
2011-11-21 18:46:18 +01:00
2011-11-18 14:38:59 -05:00
2011-12-12 19:04:10 -05:00
2010-10-27 11:37:31 -07:00
2011-11-18 14:37:08 -05:00
2011-12-23 17:13:56 -05:00
2011-12-21 01:03:23 -05:00
2011-12-14 13:34:55 -05:00
2011-03-10 00:40:17 -08:00
2011-11-29 00:29:41 -05:00
2011-05-08 15:51:57 -07:00
2012-01-11 12:56:06 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-12-21 01:03:23 -05:00
2011-12-12 19:04:11 -05:00
2011-03-31 11:26:23 -03:00
2012-01-12 12:27:59 -08:00
2011-12-11 18:25:16 -05:00
2011-12-12 19:04:10 -05:00
2010-11-17 12:27:46 -08:00
2011-03-10 00:40:17 -08:00
2011-12-19 22:27:29 -05:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-31 11:26:23 -03:00
2011-12-12 19:04:11 -05:00
2011-12-11 18:25:16 -05:00
2012-01-11 12:56:06 -08:00
2009-09-30 16:12:20 -07:00
2011-12-09 14:14:08 -05:00
2011-11-06 19:44:47 -08:00
2010-07-12 12:57:54 -07:00
2008-08-06 02:39:30 -07:00
2010-12-12 22:08:17 -08:00
2011-07-01 17:33:19 -07:00
2011-10-24 03:01:22 -04:00
2011-10-31 19:30:30 -04:00
2011-12-11 18:25:16 -05:00