]> 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>
Wed, 19 Jun 2013 00:05:53 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:56 +0000 (17:12 +1000)
commite17015b6ff936245cfcd8f30e7fdd032ec475518
tree89c5149fa365afc314eeec4103078a3c64260df9
parent8fb38156655709247bc89d822930c5b3f6dcd256
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