summaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2012-03-21 23:34:02 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-22 00:54:57 (GMT)
commitd563c0501bf8702b9b683206c09b9defb37d8a8a (patch)
treeac3c870c1885337e340d807cd8b5dc0ad8eb0315 /mm/shmem.c
parent978ea78b65794ef07eb66b9946064dea66b52554 (diff)
downloadlinux-d563c0501bf8702b9b683206c09b9defb37d8a8a.tar.xz
vmscan: handle isolated pages with lru lock released
When shrinking inactive lru list, isolated pages are queued on locally private list, so the lock-hold time could be reduced if pages are counted without lock protection. To achieve that, firstly updating reclaim stat is delayed until the putback stage, after reacquiring the lru lock. Secondly, operations related to vm and zone stats are now proteced with preemption disabled as they are per-cpu operations. Signed-off-by: Hillf Danton <dhillf@gmail.com> Acked-by: Hugh Dickins <hughd@google.com> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions