net: cassini: use nested lock annotation
Subsystems (3)
PATCH 1/1 net: cassini: use nested lock annotation
In the cas_lock_tx function we acquire multiple locks in a loop and need to use nested lock annotation to prevent lockdep warnings.
Reported-by Meelis Roos <[email protected]>
Signed-off-by Emil Goode <[email protected]>
--- drivers/net/ethernet/sun/cassini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sun/cassini.c +1 -1
@@ -246,7 +246,7 @@ static inline void cas_lock_tx(struct cas *cp)int i;for (i =0 ; i <N_TX_RINGS ; i++) -spin_lock (&cp->tx_lock[i]); +spin_lock_nested (&cp->tx_lock[i], i); }static inline void cas_lock_all (struct cas *cp)
Signature · 1 line
1.7.10.4
From: Emil Goode <[email protected]>
Date: Fri, 9 May 2014 01:07:17 +0200
Quoted 5 lines
In the
cas_lock_txfunction we acquire multiple locks in a loop and need to use nested lock annotation to prevent lockdep warnings.Reported-by Meelis Roos <[email protected]>Signed-off-by Emil Goode <[email protected]>
Applied, thanks.