diff options
author | Paul Jackson <pj@sgi.com> | 2006-05-21 00:00:11 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-21 21:59:18 +0200 |
commit | 92d1dbd27417c54c23aac6a84c285e256f6118b6 (patch) | |
tree | bab665935a47bb6889ddc3c92a9bee68f1f6f532 /drivers/isdn | |
parent | [PATCH] cpuset: update cpuset_zones_allowed comment (diff) | |
download | linux-92d1dbd27417c54c23aac6a84c285e256f6118b6.tar.xz linux-92d1dbd27417c54c23aac6a84c285e256f6118b6.zip |
[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>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions