percpu: make allocation failures more verbose
authorTejun Heo <tj@kernel.org>
Tue, 29 Sep 2009 00:17:58 +0000 (09:17 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 29 Sep 2009 00:17:58 +0000 (09:17 +0900)
commitf2badb0c950ed308be9b321203b9c8d341690cd4
tree5da0e7493192f97be604e257fd10847ae3a27504
parent635b75fc18858d3522e481c043de764766db923c
percpu: make allocation failures more verbose

Warn and dump stack when percpu allocation fails.  percpu allocator is
still young and unchecked NULL percpu pointer usage can result in
random memory corruption when combined with the pointer shifting in
access macros.  Allocation failures should be rare and the warning
message will be disabled after certain times.

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