From: Marc Zyngier Date: Fri, 6 Mar 2015 16:37:43 +0000 (+0000) Subject: irqchip: gicv3-its: Fix unsafe locking reported by lockdep X-Git-Tag: omap-for-v4.1/wl12xx-dt~10^2^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e39e8f56c1c67cdd1e8f06da0d6b7c831818c76;p=pandora-kernel.git irqchip: gicv3-its: Fix unsafe locking reported by lockdep When compiled with CONFIG_LOCKDEP, the kernel shouts badly, saying that my locking is unsafe. I'm afraid the kernel is right: CPU0 CPU1 ---- ---- lock(&its->lock); local_irq_disable(); lock(&irq_desc_lock_class); lock(&its->lock); lock(&irq_desc_lock_class); *** DEADLOCK *** The fix is to always take its->lock with interrupts disabled. Reported-by: Will Deacon Signed-off-by: Marc Zyngier Link: https://lkml.kernel.org/r/1425659870-11832-5-git-send-email-marc.zyngier@arm.com Signed-off-by: Jason Cooper --- Reading git-diff-tree failed