Skip to contentSkip to conversation

mlx4: not using spin_lock_irq when getting vf by resource.

PATCH In review Yevgeny Petrilin 1 participant 1 message Dec 19, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 mlx4: not using spin_lock_irq when getting vf by resource.

From: Yevgeny Petrilin <[email protected]>

The function is always called from irq context, changing the call to spin_lock().

---
 .../net/ethernet/mellanox/mlx4/resource_tracker.c  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c +2 -2
index bdd61c3..b41762d 100644
@@ -339,14 +339,14 @@ int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
 
 	if (type == RES_QP)
 		id &= 0x7fffff;
-	spin_lock_irq(mlx4_tlock(dev));
+	spin_lock(mlx4_tlock(dev));
 
 	r = find_res(dev, id, type);
 	if (r) {
 		*slave = r->owner;
 		err = 0;
 	}
-	spin_unlock_irq(mlx4_tlock(dev));
+	spin_unlock(mlx4_tlock(dev));
 
 	return err;
 }
Signature · 1 line
1.7.7