From: Jack Morgenstein Date: Tue, 27 Nov 2012 16:24:29 +0000 (+0000) Subject: IB/mlx4: Fix spinlock order to avoid lockdep warnings X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~23^2~2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceb7decb366591e9b67d70832e07f5d240572a3d;p=pandora-kernel.git IB/mlx4: Fix spinlock order to avoid lockdep warnings lockdep warns about taking a hard-irq-unsafe lock (sriov->id_map_lock) inside a hard-irq-safe lock (sriov->going_down_lock). Since id_map_lock is never taken in the interrupt context, we can simply reverse the order of taking the two spinlocks, thus avoiding the warning and the depencency. Signed-off-by: Jack Morgenstein Signed-off-by: Or Gerlitz Cc: Signed-off-by: Roland Dreier --- Reading git-diff-tree failed