From: Cody P Schafer Date: Wed, 3 Jul 2013 22:01:29 +0000 (-0700) Subject: mm/page_alloc: prevent concurrent updaters of pcp ->batch and ->high X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~403 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e251fadc6220261f6e0c6b8a4f1cdf27626165;p=pandora-kernel.git mm/page_alloc: prevent concurrent updaters of pcp ->batch and ->high Because we are going to rely upon a careful transision between old and new ->high and ->batch values using memory barriers and will remove stop_machine(), we need to prevent multiple updaters from interweaving their memory writes. Add a simple mutex to protect both update loops. Signed-off-by: Cody P Schafer Cc: Gilad Ben-Yossef Cc: KOSAKI Motohiro Cc: Mel Gorman Cc: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed