Johannes Weiner
91c63734f6
kernel: cgroup: push rcu read locking from css_is_ancestor() to callsite
...
Library functions should not grab locks when the callsites can do it,
even if the lock nests like the rcu read-side lock does.
Push the rcu_read_lock() from css_is_ancestor() to its single user,
mem_cgroup_same_or_subtree() in preparation for another user that may
already hold the rcu read-side lock.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-29 16:22:20 -07:00
..
2012-04-04 17:26:08 -07:00
2012-05-24 11:39:34 -07:00
2011-07-26 16:49:45 -07:00
2012-05-24 13:55:24 -07:00
2012-05-18 20:44:59 +02:00
2012-05-23 17:42:39 -07:00
2012-05-24 13:29:46 -07:00
2012-05-24 11:39:34 -07:00
2012-01-08 12:19:57 -08:00
2012-01-13 09:32:18 +10:30
2011-07-20 14:10:11 -07:00
2011-03-14 09:15:23 -04:00
2012-03-20 21:29:40 -04:00
2012-01-17 16:16:57 -05:00
2012-01-17 16:17:01 -05:00
2012-04-14 11:13:20 +10:00
2011-03-23 19:46:28 -07:00
2012-05-15 14:59:24 -07:00
2012-04-01 12:09:55 -07:00
2012-05-29 16:22:20 -07:00
2012-05-21 23:52:30 -04:00
2011-07-25 20:57:15 -07:00
2011-09-23 12:05:29 +05:30
2012-05-03 19:32:34 +02:00
2012-05-22 17:40:19 -07:00
2011-11-06 19:44:47 -08:00
2012-05-23 17:42:39 -07:00
2011-07-14 12:59:14 +03:00
2012-03-28 18:30:03 +01:00
2010-08-09 20:45:05 -07:00
2012-05-17 16:50:06 -06:00
2012-04-19 15:06:55 -07:00
2012-05-29 16:22:19 -07:00
2012-03-04 23:08:54 +01:00
2012-03-29 11:37:17 +02:00
2012-03-29 11:37:17 +02:00
2012-05-03 03:29:33 -07:00
2011-11-28 08:43:52 -08:00
2012-04-25 12:39:25 +02:00
2012-04-13 13:15:16 -04:00
2012-04-10 11:00:30 +02:00
2012-02-28 20:01:08 +01:00
2011-03-25 17:52:22 -07:00
2012-03-23 13:18:57 +01:00
2012-03-23 13:18:57 +01:00
2012-03-28 17:19:28 -07:00
2012-04-11 18:24:37 -03:00
2012-03-28 23:30:28 +02:00
2012-03-05 15:49:42 -08:00
2011-10-31 09:20:13 -04:00
2011-11-23 09:28:17 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-02-21 09:06:06 -08:00
2012-04-26 12:06:09 +02:00
2012-05-23 22:28:53 +09:30
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2012-03-01 10:28:03 +01:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-03-29 19:52:46 +08:00
2012-04-12 13:12:12 -07:00
2012-05-04 17:28:18 -07:00
2012-03-28 17:14:36 -07:00
2012-05-24 00:28:21 -04:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2012-05-14 12:36:45 -07:00
2011-10-31 09:20:12 -04:00
2012-05-03 03:28:51 -07:00
2011-10-31 09:20:11 -04:00
2012-02-21 09:06:12 -08:00
2012-05-02 14:48:27 -07:00
2012-05-02 14:48:27 -07:00
2012-02-21 09:06:13 -08:00
2012-04-30 10:48:26 -07:00
2012-05-11 10:14:21 -07:00
2012-05-09 14:27:54 -07:00
2012-05-14 08:41:46 +02:00
2012-05-11 10:14:21 -07:00
2012-02-10 09:04:49 +01:00
2012-04-27 14:37:09 -07:00
2012-02-03 23:37:07 +01:00
2011-01-27 21:13:51 -05:00
2011-12-06 08:16:49 +01:00
2011-12-14 14:54:22 -08:00
2011-12-11 10:33:18 -08:00
2012-03-28 18:30:03 +01:00
2012-04-18 12:24:52 +10:00
2012-04-05 17:15:55 -07:00
2012-05-24 11:39:34 -07:00
2012-05-08 12:35:06 +02:00
2012-05-03 19:32:34 +02:00
2012-05-04 12:52:25 +02:00
2012-03-20 10:32:09 -07:00
2012-03-23 13:18:57 +01:00
2012-04-30 10:48:25 -07:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2012-05-23 17:42:39 -07:00
2011-12-20 10:25:04 -08:00
2012-04-05 14:51:43 +10:00
2011-09-19 17:04:37 -07:00
2010-10-14 08:55:27 +02:00
2012-03-15 18:17:55 -07:00
2012-05-23 17:42:39 -07:00
2012-02-24 10:05:59 +01:00
2011-12-15 14:56:19 +01:00
2012-05-03 03:28:41 -07:00
2011-10-31 09:20:12 -04:00
2012-05-03 03:28:38 -07:00
2011-10-31 09:20:12 -04:00
2012-05-19 15:44:40 -06:00
2011-11-06 19:44:47 -08:00
2012-04-07 16:55:51 -07:00
2011-12-21 10:07:39 +01:00
2012-04-08 12:49:03 +03:00
2012-05-15 08:08:31 -07:00