提交 996b0541 编写于 作者: Y Yevgeny Petrilin 提交者: David S. Miller

mlx4: not using spin_lock_irq when getting vf by resource.

The function is always called from irq context, changing the call
to spin_lock().
Signed-off-by: NYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0e03567a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册