OSDN Git Service

net/mlx5: Remove outdated comment
authorJiri Pirko <jiri@nvidia.com>
Fri, 13 Jan 2023 14:44:42 +0000 (15:44 +0100)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 14 Feb 2023 22:08:26 +0000 (14:08 -0800)
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>
drivers/net/ethernet/mellanox/mlx5/core/dev.c

index 17ae9b4..49bbfad 100644 (file)
@@ -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;