]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_alloc: protect pcp->batch accesses with ACCESS_ONCE
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 27 Jun 2013 23:51:22 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:27 +0000 (16:37 +1000)
commit8f4dcf4cc6cf075b97c7831ff6ad2a607f765149
tree7a50907e3dfa74abfaa4f985116014951e0e473d
parentc9dbe064808260cc170a73049cbdaf2484b9cfe0
mm/page_alloc: protect pcp->batch accesses with ACCESS_ONCE

pcp->batch could change at any point, avoid relying on it being a stable
value.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c