From: Chao Yu Date: Thu, 25 Sep 2014 07:28:34 +0000 (+0800) Subject: md: avoid potential long delay under pers_lock X-Git-Tag: omap-for-v3.19/prcm-cleanup~52^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50bd3774058137e687b41da8b31fdd3544f7d901;p=pandora-kernel.git md: avoid potential long delay under pers_lock printk may cause long time lapse if value of printk_delay in sysctl is configured large by user. If register_md_personality takes long time to print in spinlock pers_lock, we may encounter high CPU usage rate when there are other pers_lock competitors who may be blocked to spin. We can avoid this condition by moving printk out of coverage of pers_lock spinlock. Signed-off-by: Chao Yu Signed-off-by: NeilBrown --- Reading git-diff-tree failed