Paul Jackson 92d1dbd274 [PATCH] cpuset: might_sleep_if check in cpuset_zones_allowed
It's too easy to incorrectly call cpuset_zone_allowed() in an atomic
context without __GFP_HARDWALL set, and when done, it is not noticed until
a tight memory situation forces allocations to be tried outside the current
cpuset.

Add a 'might_sleep_if()' check, to catch this earlier on, instead of
waiting for a similar check in the mutex_lock() code, which is only rarely
invoked.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-21 12:59:18 -07:00
..
2006-05-01 06:10:01 -04:00
2006-05-01 06:10:07 -04:00
2006-03-26 08:57:03 -08:00
2006-03-31 12:18:59 -08:00
2006-04-01 01:41:22 +02:00
2006-04-19 16:27:18 -07:00
2006-03-24 07:33:20 -08:00