Skip to content

Commit 65127d2

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into merge
2 parents b8bb767 + 8fe74cf commit 65127d2

366 files changed

Lines changed: 34561 additions & 6286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
*.html
55
*.9.gz
66
*.9
7+
*.aux
8+
*.dvi
9+
*.log
10+
*.out

‎Documentation/cgroups/cgroups.txt‎

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,23 @@ The "xxx" is not interpreted by the cgroup code, but will appear in
333333

334334
To mount a cgroup hierarchy with just the cpuset and numtasks
335335
subsystems, type:
336-
# mount -t cgroup -o cpuset,numtasks hier1 /dev/cgroup
336+
# mount -t cgroup -o cpuset,memory hier1 /dev/cgroup
337337

338338
To change the set of subsystems bound to a mounted hierarchy, just
339339
remount with different options:
340+
# mount -o remount,cpuset,ns hier1 /dev/cgroup
340341

341-
# mount -o remount,cpuset,ns /dev/cgroup
342+
Now memory is removed from the hierarchy and ns is added.
343+
344+
Note this will add ns to the hierarchy but won't remove memory or
345+
cpuset, because the new options are appended to the old ones:
346+
# mount -o remount,ns /dev/cgroup
347+
348+
To Specify a hierarchy's release_agent:
349+
# mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \
350+
xxx /dev/cgroup
351+
352+
Note that specifying 'release_agent' more than once will return failure.
342353

343354
Note that changing the set of subsystems is currently only supported
344355
when the hierarchy consists of a single (root) cgroup. Supporting
@@ -349,6 +360,11 @@ Then under /dev/cgroup you can find a tree that corresponds to the
349360
tree of the cgroups in the system. For instance, /dev/cgroup
350361
is the cgroup that holds the whole system.
351362

363+
If you want to change the value of release_agent:
364+
# echo "/sbin/new_release_agent" > /dev/cgroup/release_agent
365+
366+
It can also be changed via remount.
367+
352368
If you want to create a new cgroup under /dev/cgroup:
353369
# cd /dev/cgroup
354370
# mkdir my_cgroup
@@ -476,11 +492,13 @@ cgroup->parent is still valid. (Note - can also be called for a
476492
newly-created cgroup if an error occurs after this subsystem's
477493
create() method has been called for the new cgroup).
478494

479-
void pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp);
495+
int pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp);
480496

481497
Called before checking the reference count on each subsystem. This may
482498
be useful for subsystems which have some extra references even if
483-
there are not tasks in the cgroup.
499+
there are not tasks in the cgroup. If pre_destroy() returns error code,
500+
rmdir() will fail with it. From this behavior, pre_destroy() can be
501+
called multiple times against a cgroup.
484502

485503
int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
486504
struct task_struct *task)

‎Documentation/cgroups/memcg_test.txt‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Memory Resource Controller(Memcg) Implementation Memo.
2-
Last Updated: 2009/1/19
2+
Last Updated: 2009/1/20
33
Base Kernel Version: based on 2.6.29-rc2.
44

55
Because VM is getting complex (one of reasons is memcg...), memcg's behavior
@@ -360,3 +360,21 @@ Under below explanation, we assume CONFIG_MEM_RES_CTRL_SWAP=y.
360360
# kill malloc task.
361361

362362
Of course, tmpfs v.s. swapoff test should be tested, too.
363+
364+
9.8 OOM-Killer
365+
Out-of-memory caused by memcg's limit will kill tasks under
366+
the memcg. When hierarchy is used, a task under hierarchy
367+
will be killed by the kernel.
368+
In this case, panic_on_oom shouldn't be invoked and tasks
369+
in other groups shouldn't be killed.
370+
371+
It's not difficult to cause OOM under memcg as following.
372+
Case A) when you can swapoff
373+
#swapoff -a
374+
#echo 50M > /memory.limit_in_bytes
375+
run 51M of malloc
376+
377+
Case B) when you use mem+swap limitation.
378+
#echo 50M > memory.limit_in_bytes
379+
#echo 50M > memory.memsw.limit_in_bytes
380+
run 51M of malloc

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,16 @@ Who: Jan Engelhardt <jengelh@computergmbh.de>
255255

256256
---------------------------
257257

258+
What: GPIO autorequest on gpio_direction_{input,output}() in gpiolib
259+
When: February 2010
260+
Why: All callers should use explicit gpio_request()/gpio_free().
261+
The autorequest mechanism in gpiolib was provided mostly as a
262+
migration aid for legacy GPIO interfaces (for SOC based GPIOs).
263+
Those users have now largely migrated. Platforms implementing
264+
the GPIO interfaces without using gpiolib will see no changes.
265+
Who: David Brownell <dbrownell@users.sourceforge.net>
266+
---------------------------
267+
258268
What: b43 support for firmware revision < 410
259269
When: The schedule was July 2008, but it was decided that we are going to keep the
260270
code as long as there are no major maintanance headaches.

0 commit comments

Comments
 (0)