summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2020-05-14 05:12:56 -0500
committerSaeed Mahameed <saeedm@mellanox.com>2020-06-11 15:38:00 -0700
commit60904cd349abc98cb888fc28d1ca55a8e2cf87b3 (patch)
treef8c1cabb75af53f51f7cb0b82a392879e1608d5e /drivers/net/usb
parent5f1572e6178e47c3ace55ced187d93240952c9cd (diff)
downloadlinux-60904cd349abc98cb888fc28d1ca55a8e2cf87b3.tar.bz2
net/mlx5: Disable reload while removing the device
While unregistration is in progress, user might be reloading the interface. This can race with unregistration in below flow which uses the resources which are getting disabled by reload flow. Hence, disable the devlink reloading first when removing the device. CPU0 CPU1 ---- ---- local_pci_remove() devlink_mutex remove_one() devlink_nl_cmd_reload() mlx5_unregister_device() devlink_reload() ops->reload_down() mlx5_unload_one() Fixes: 4383cfcc65e7 ("net/mlx5: Add devlink reload") Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/usb')
0 files changed, 0 insertions, 0 deletions