public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h
@ 2015-01-06 16:57 Tejun Heo
  2015-01-06 16:58 ` [PATCH 2/2 cgroup/for-3.20] cgroup: add dummy css_put() for !CONFIG_CGROUPS Tejun Heo
  2015-01-07  3:57 ` [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h Zefan Li
  0 siblings, 2 replies; 4+ messages in thread
From: Tejun Heo @ 2015-01-06 16:57 UTC (permalink / raw)
  To: Li Zefan; +Cc: cgroups, linux-kernel

The scheduled cgroup writeback support requires blkio to be
initialized before memcg as memcg needs to provide certain blkcg
related functionalities.  Relocate blkio so that it's right above
memory.

Signed-off-by: Tejun Heo <tj@kernel.org>
---
Hello,

These are two trivial patches to prepare for the cgroup writeback
support.  Applying to cgroup/for-3.20.

Thanks.

 include/linux/cgroup_subsys.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/include/linux/cgroup_subsys.h
+++ b/include/linux/cgroup_subsys.h
@@ -15,6 +15,10 @@ SUBSYS(cpu)
 SUBSYS(cpuacct)
 #endif
 
+#if IS_ENABLED(CONFIG_BLK_CGROUP)
+SUBSYS(blkio)
+#endif
+
 #if IS_ENABLED(CONFIG_MEMCG)
 SUBSYS(memory)
 #endif
@@ -31,10 +35,6 @@ SUBSYS(freezer)
 SUBSYS(net_cls)
 #endif
 
-#if IS_ENABLED(CONFIG_BLK_CGROUP)
-SUBSYS(blkio)
-#endif
-
 #if IS_ENABLED(CONFIG_CGROUP_PERF)
 SUBSYS(perf_event)
 #endif

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2 cgroup/for-3.20] cgroup: add dummy css_put() for !CONFIG_CGROUPS
  2015-01-06 16:57 [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h Tejun Heo
@ 2015-01-06 16:58 ` Tejun Heo
  2015-01-07  3:57   ` Zefan Li
  2015-01-07  3:57 ` [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h Zefan Li
  1 sibling, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2015-01-06 16:58 UTC (permalink / raw)
  To: Li Zefan; +Cc: cgroups, linux-kernel

This will later be depended upon by the scheduled cgroup writeback
support.

Signed-off-by: Tejun Heo <tj@kernel.org>
---
 include/linux/cgroup.h |    4 ++++
 1 file changed, 4 insertions(+)

--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -943,6 +943,8 @@ struct cgroup_subsys_state *css_tryget_o
 
 #else /* !CONFIG_CGROUPS */
 
+struct cgroup_subsys_state;
+
 static inline int cgroup_init_early(void) { return 0; }
 static inline int cgroup_init(void) { return 0; }
 static inline void cgroup_fork(struct task_struct *p) {}
@@ -955,6 +957,8 @@ static inline int cgroupstats_build(stru
 	return -EINVAL;
 }
 
+static inline void css_put(struct cgroup_subsys_state *css) {}
+
 /* No cgroups - nothing to do */
 static inline int cgroup_attach_task_all(struct task_struct *from,
 					 struct task_struct *t)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h
  2015-01-06 16:57 [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h Tejun Heo
  2015-01-06 16:58 ` [PATCH 2/2 cgroup/for-3.20] cgroup: add dummy css_put() for !CONFIG_CGROUPS Tejun Heo
@ 2015-01-07  3:57 ` Zefan Li
  1 sibling, 0 replies; 4+ messages in thread
From: Zefan Li @ 2015-01-07  3:57 UTC (permalink / raw)
  To: Tejun Heo; +Cc: cgroups, linux-kernel

On 2015/1/7 0:57, Tejun Heo wrote:
> The scheduled cgroup writeback support requires blkio to be
> initialized before memcg as memcg needs to provide certain blkcg
> related functionalities.  Relocate blkio so that it's right above
> memory.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> ---
> Hello,
> 
> These are two trivial patches to prepare for the cgroup writeback
> support.  Applying to cgroup/for-3.20.
> 

Acked-by: Zefan Li <lizefan@huawei.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2 cgroup/for-3.20] cgroup: add dummy css_put() for !CONFIG_CGROUPS
  2015-01-06 16:58 ` [PATCH 2/2 cgroup/for-3.20] cgroup: add dummy css_put() for !CONFIG_CGROUPS Tejun Heo
@ 2015-01-07  3:57   ` Zefan Li
  0 siblings, 0 replies; 4+ messages in thread
From: Zefan Li @ 2015-01-07  3:57 UTC (permalink / raw)
  To: Tejun Heo; +Cc: cgroups, linux-kernel

On 2015/1/7 0:58, Tejun Heo wrote:
> This will later be depended upon by the scheduled cgroup writeback
> support.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>

Acked-by: Zefan Li <lizefan@huawei.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-07  3:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06 16:57 [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h Tejun Heo
2015-01-06 16:58 ` [PATCH 2/2 cgroup/for-3.20] cgroup: add dummy css_put() for !CONFIG_CGROUPS Tejun Heo
2015-01-07  3:57   ` Zefan Li
2015-01-07  3:57 ` [PATCH 1/2 cgroup/for-3.20] cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h Zefan Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox