Files
Daniel Jurgens 35a9ebd920 net/mlx5: Fix race for multiple RoCE enable
[ Upstream commit 734dc065fc ]

There are two potential problems with the existing implementation.

1. Enable and disable can race after the atomic operations.
2. If a command fails the refcount is left in an inconsistent state.

Introduce a lock and perform error checking.

Fixes: a6f7d2aff6 ("net/mlx5: Add support for multiple RoCE enable")
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-12 12:32:17 +02:00
..
2017-12-29 17:53:47 +01:00
2017-12-25 14:26:33 +01:00
2018-02-22 15:42:23 +01:00
2018-01-17 09:45:27 +01:00
2018-02-22 15:42:23 +01:00
2018-02-22 15:42:23 +01:00
2017-09-08 18:26:46 -07:00
2018-02-22 15:42:24 +01:00
2017-09-07 11:53:11 +02:00
2018-02-22 15:42:23 +01:00
2018-02-22 15:42:23 +01:00
2017-09-25 08:56:05 -06:00
2017-12-20 10:10:18 +01:00
2018-02-22 15:42:23 +01:00
2018-02-22 15:42:23 +01:00