]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm,vmacache: optimize overflow system-wide flushing
authorDavidlohr Bueso <davidlohr@hp.com>
Thu, 22 May 2014 00:42:45 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:45 +0000 (10:42 +1000)
commite7785c2fa049c9f40a743f231513d8475b96441c
treec4219226327269998048a98ab3e4467b79d1038d
parent05c39824dd2f04252500940b03493bf9b3ac3d43
mm,vmacache: optimize overflow system-wide flushing

For single threaded workloads, we can avoid flushing and iterating through
the entire list of tasks, making the whole function a lot faster,
requiring only a single atomic read for the mm_users.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Suggested-by: Oleg Nesterov <oleg@redhat.com>
Cc: Aswin Chandramouleeswaran <aswin@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmacache.c