summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2020-05-14 13:12:56 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-06-12 01:38:00 +0300
commit60904cd349abc98cb888fc28d1ca55a8e2cf87b3 (patch)
treef8c1cabb75af53f51f7cb0b82a392879e1608d5e /tools/perf/scripts/python
parent5f1572e6178e47c3ace55ced187d93240952c9cd (diff)
downloadlinux-60904cd349abc98cb888fc28d1ca55a8e2cf87b3.tar.xz
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions