]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - mm/percpu-km.c
percpu: make percpu-km set chunk->populated bitmap properly
authorTejun Heo <tj@kernel.org>
Tue, 2 Sep 2014 18:46:02 +0000 (14:46 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 2 Sep 2014 18:46:02 +0000 (14:46 -0400)
commita63d4ac4ab6094c051a5a240260d16117a7a2f86
tree49a72a515f8bb9a4f83bc68526187da462f20dd8
parenta93ace487a339dccf7040be7fee08c3415188e14
percpu: make percpu-km set chunk->populated bitmap properly

percpu-km instantiates the whole chunk on creation and doesn't make
use of chunk->populated bitmap and leaves it as zero.  While this
currently doesn't cause any problem, the inconsistency makes it
difficult to build further logic on top of chunk->populated.  This
patch makes percpu-km fill chunk->populated on creation so that the
bitmap is always consistent.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Christoph Lameter <cl@linux.com>
mm/percpu-km.c