• P
    [PATCH] cpuset: update cpuset_zones_allowed comment · 36be57ff
    Paul Jackson 提交于
    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: NPaul Jackson <pj@sgi.com>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    36be57ff
cpuset.c 71.3 KB