kernel-fxtec-pro1x/mm
Andrea Arcangeli ea164d73a7 [PATCH] shrinker->nr = LONG_MAX means deadlock for icache
With Andrew Morton <akpm@osdl.org>

The slab scanning code tries to balance the scanning rate of slabs versus the
scanning rate of LRU pages.  To do this, it retains state concerning how many
slabs have been scanned - if a particular slab shrinker didn't scan enough
objects, we remember that for next time, and scan more objects on the next
pass.

The problem with this is that with (say) a huge number of GFP_NOIO
direct-reclaim attempts, the number of objects which are to be scanned when we
finally get a GFP_KERNEL request can be huge.  Because some shrinker handlers
just bail out if !__GFP_FS.

So the patch clamps the number of objects-to-be-scanned to 2* the total number
of objects in the slab cache.

Signed-off-by: Andrea Arcangeli <andrea@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-28 14:42:26 -08:00
..
bootmem.c
fadvise.c
filemap.c
filemap.h
filemap_xip.c
fremap.c mm: re-architect the VM_UNPAGED logic 2005-11-28 14:34:23 -08:00
highmem.c
hugetlb.c
internal.h
Kconfig
madvise.c mm: re-architect the VM_UNPAGED logic 2005-11-28 14:34:23 -08:00
Makefile
memory.c [PATCH] Workaround for gcc 2.96 (undefined references) 2005-11-28 14:42:22 -08:00
memory_hotplug.c
mempolicy.c mm: re-architect the VM_UNPAGED logic 2005-11-28 14:34:23 -08:00
mempool.c
mincore.c
mlock.c
mmap.c
mprotect.c
mremap.c
msync.c mm: re-architect the VM_UNPAGED logic 2005-11-28 14:34:23 -08:00
nommu.c mm: re-architect the VM_UNPAGED logic 2005-11-28 14:34:23 -08:00
oom_kill.c
page-writeback.c
page_alloc.c [PATCH] mm: __alloc_pages cleanup fix 2005-11-28 14:42:24 -08:00
page_io.c
pdflush.c
prio_tree.c
readahead.c
rmap.c [PATCH] temporarily disable swap token on memory pressure 2005-11-28 14:42:25 -08:00
shmem.c
slab.c
sparse.c
swap.c
swap_state.c
swapfile.c
thrash.c [PATCH] temporarily disable swap token on memory pressure 2005-11-28 14:42:25 -08:00
tiny-shmem.c
truncate.c [PATCH] 32bit integer overflow in invalidate_inode_pages2() 2005-11-23 16:08:39 -08:00
vmalloc.c
vmscan.c [PATCH] shrinker->nr = LONG_MAX means deadlock for icache 2005-11-28 14:42:26 -08:00