summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/dev.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-01-13 17:44:42 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-02-15 01:08:26 +0300
commit29a299cb6b2051c1c7394da00c080df5cca7bfc3 (patch)
treed5c22cd96bab7658d3df09aff8830cdf822eec86 /drivers/net/ethernet/mellanox/mlx5/core/dev.c
parentb97653d87bda09441d521a448c69cccd3dd6649d (diff)
downloadlinux-29a299cb6b2051c1c7394da00c080df5cca7bfc3.tar.xz
net/mlx5: Remove outdated comment
The comment is no longer applicable, as the devlink reload and instance cleanup are both protected with devlink instance lock, therefore no race can happen. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/dev.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/dev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/dev.c b/drivers/net/ethernet/mellanox/mlx5/core/dev.c
index 17ae9b4ec794..49bbfadc8c64 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/dev.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/dev.c
@@ -377,10 +377,6 @@ int mlx5_attach_device(struct mlx5_core_dev *dev)
/* Pay attention that this is not PCI driver that
* mlx5_core_dev is connected, but auxiliary driver.
- *
- * Here we can race of module unload with devlink
- * reload, but we don't need to take extra lock because
- * we are holding global mlx5_intf_mutex.
*/
if (!adev->dev.driver)
continue;