From: Mel Gorman Date: Mon, 25 Apr 2011 21:36:42 +0000 (+0000) Subject: mm: Serialize access to min_free_kbytes X-Git-Tag: sz_154~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f1b93a7db7824a263f9ad7c0504067ca54176bf;p=pandora-kernel.git mm: Serialize access to min_free_kbytes There is a race between the min_free_kbytes sysctl, memory hotplug and transparent hugepage support enablement. Memory hotplug uses a zonelists_mutex to avoid a race when building zonelists. Reuse it to serialise watermark updates. [a.p.zijlstra@chello.nl: Older patch fixed the race with spinlock] Signed-off-by: Mel Gorman Signed-off-by: Marek Szyprowski Reviewed-by: KAMEZAWA Hiroyuki Tested-by: Barry Song --- Reading git-diff-tree failed