]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: do not drain pagevecs for mlockall(MCL_FUTURE)
authorChristoph Lameter <cl@gentwo.org>
Mon, 24 Oct 2011 14:54:33 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:52 +0000 (20:07 +1100)
commit49b6be392aaa77a99294d754b30498dca74f5703
tree71b03ed358c9a9ed89c402a549563e89d0e1da3a
parentc4d8115b99749e15e8a07e4ac3b983c876f59064
mm: do not drain pagevecs for mlockall(MCL_FUTURE)

MCL_FUTURE does not move pages between lru list and draining the LRU per
cpu pagevecs is a nasty activity.  Avoid doing it unecessarily.

Signed-off-by: Christoph Lameter <cl@gentwo.org>
Cc: David Rientjes <rientjes@google.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Acked-by: Johannes Weiner <jweiner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mlock.c