From: Davidlohr Bueso Date: Wed, 4 Jun 2014 23:06:47 +0000 (-0700) Subject: mm,vmacache: optimize overflow system-wide flushing X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4ebc3a9078c5b7b8c4cf495a0b1d2d0e0bfe7a;p=pandora-kernel.git 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 Suggested-by: Oleg Nesterov Cc: Aswin Chandramouleeswaran Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed