From: Tejun Heo Date: Tue, 2 Sep 2014 18:46:05 +0000 (-0400) Subject: percpu: make sure chunk->map array has available space X-Git-Tag: omap-for-v3.19/prcm-cleanup~131^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c824b6a172c8d44a6b037946bae90127c969b1b;p=pandora-kernel.git percpu: make sure chunk->map array has available space An allocation attempt may require extending chunk->map array which requires GFP_KERNEL context which isn't available for atomic allocations. This patch ensures that chunk->map array usually keeps some amount of available space by directly allocating buffer space during GFP_KERNEL allocations and scheduling async extension during atomic ones. This should make atomic allocation failures from map space exhaustion rare. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed