]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] cpuset: update cpuset_zones_allowed comment
authorPaul Jackson <pj@sgi.com>
Sat, 20 May 2006 22:00:10 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 21 May 2006 19:59:18 +0000 (12:59 -0700)
commit9fb5b394db71a3f8d42c68ca4f9ff9189605ec8a
tree8062e9a9e49fd942fab35e17a2b5afe571a74f63
parent8ced4345a1fa05f6bcef7b859e2aec8a60945d32
[PATCH] cpuset: update cpuset_zones_allowed comment

Update the kernel/cpuset.c:cpuset_zone_allowed() comment.

The rule for when mm/page_alloc.c should call cpuset_zone_allowed()
was intended to be:

  Don't call cpuset_zone_allowed() if you can't sleep, unless you
  pass in the __GFP_HARDWALL flag set in gfp_flag, which disables
  the code that might scan up ancestor cpusets and sleep.

The explanation of this rule in the comment above cpuset_zone_allowed() was
stale, as a result of a restructuring of some __alloc_pages() code in
November 2005.

Rewrite that comment ...

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/cpuset.c