]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: remove @may_alloc from pcpu_get_pages()
authorTejun Heo <tj@kernel.org>
Tue, 2 Sep 2014 18:46:01 +0000 (14:46 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 2 Sep 2014 18:46:01 +0000 (14:46 -0400)
commitf0486ff436a379d4d129aec217626347b832a224
tree6238aeb94660eda94e9bb37f227a6531bb4a8e22
parent90167883c6c8524b1912e28ae59eb5545cee928f
percpu: remove @may_alloc from pcpu_get_pages()

pcpu_get_pages() creates the temp pages array if not already allocated
and returns the pointer to it.  As the function is called from both
[de]population paths and depopulation can only happen after at least
one successful population, the param doesn't make any difference - the
allocation will always happen on the population path anyway.

Remove @may_alloc from pcpu_get_pages().  Also, add an lockdep
assertion pcpu_alloc_mutex instead of vaguely stating that the
exclusion is the caller's responsibility.

Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu-vm.c