diff options
author | David Rientjes <rientjes@google.com> | 2007-10-17 08:26:00 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 17:42:46 +0200 |
commit | ae74138da609c576b221c765efa8b81b2365f465 (patch) | |
tree | 514b8ea20d97815a7dfd5fd9ebcb6377b178f2b0 /mm/vmscan.c | |
parent | oom: add header file to Kbuild as unifdef (diff) | |
download | linux-ae74138da609c576b221c765efa8b81b2365f465.tar.xz linux-ae74138da609c576b221c765efa8b81b2365f465.zip |
oom: convert zone_scan_lock from mutex to spinlock
There's no reason to sleep in try_set_zone_oom() or clear_zonelist_oom() if
the lock can't be acquired; it will be available soon enough once the zonelist
scanning is done. All other threads waiting for the OOM killer are also
contingent on the exiting task being able to acquire the lock in
clear_zonelist_oom() so it doesn't make sense to put it to sleep.
Cc: Andrea Arcangeli <andrea@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions