[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4EEF4419.100@mellanox.co.il>
Date: Mon, 19 Dec 2011 16:03:05 +0200
From: Yevgeny Petrilin <yevgenyp@...lanox.co.il>
To: <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <yevgenyp@...lanox.co.il>
Subject: [PATCH net-next 4/5] mlx4: not using spin_lock_irq when getting vf
by resource.
From: Yevgeny Petrilin <yevgenyp@...lanox.co.il>
The function is always called from irq context, changing the call
to spin_lock().
Signed-off-by: Yevgeny Petrilin <yevgenyp@...lanox.co.il>
---
.../net/ethernet/mellanox/mlx4/resource_tracker.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
index bdd61c3..b41762d 100644
--- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
+++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
@@ -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;
}
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists