Re: [PATCH 3/5] Container Freezer: Implement freezer cgroup subsystem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Helsley
Date: Tuesday, August 12, 2008 - 7:38 pm

On Tue, 2008-08-12 at 15:56 -0700, Andrew Morton wrote:

I'll post a patch for that.


I wanted the changes to be obvious. I think uninlining this would be a
separate improvement. I'll post a patch uninlining these.


	I did consider a few alternatives for this. Makefile and cpp didn't
seem as nice as this. "select" didn't fit. Using "depends on" does
directly translate the build dependency. However I didn't think it would
be clear to everyone configuring a kernel that they had to enable
"FREEZER" before they could get PM_SLEEP or CGROUP_FREEZER.

	Also, Rafael has asked to see this in a kernel/Kconfig file instead
(see his reply to patch 2).


Good point. Do CGROUP_THAWED, CGROUP_FREEZING, CGROUP_FROZEN make
sensible substitutions?


I think so. Perhaps I should have more clearly connected it with
freezer_state_strs. How about:

/*
 * cgroups_write_string() limits the size of these strings to
 * CGROUP_LOCAL_BUFFER_SIZE
 */


OK. I'll try to think up a better name and if that's not sufficiently
explanatory I'll add a comment explaining what it should do.


Yes. cgroup_write_string() in kernel/cgroup.c does strstrip(buffer)

Thanks for the review!

Cheers,
	-Matt Helsley

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/5] Container Freezer: Implement freezer cgrou ..., Matt Helsley, (Tue Aug 12, 7:38 pm)
Re: [PATCH 3/5] Container Freezer: Implement freezer cgrou ..., Rafael J. Wysocki, (Wed Aug 13, 7:51 am)