diff options
author | Yishai Hadas <[email protected]> | 2022-06-28 18:59:09 +0300 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2022-06-30 10:45:39 -0600 |
commit | 2b1c1906286fa547845f5385ee72db74b2b0251d (patch) | |
tree | 6908bce8c4b9cd147c1baad2c1c8073fac3d4e6a /scripts/gdb/linux/utils.py | |
parent | d1877e639bc6bf1c3131eda3f9ede73f8da96c22 (diff) |
vfio/mlx5: Protect mlx5vf_disable_fds() upon close device
Protect mlx5vf_disable_fds() upon close device to be called under the
state mutex as done in all other places.
This will prevent a race with any other flow which calls
mlx5vf_disable_fds() as of health/recovery upon
MLX5_PF_NOTIFY_DISABLE_VF event.
Encapsulate this functionality in a separate function named
mlx5vf_cmd_close_migratable() to consider migration caps and for further
usage upon close device.
Fixes: 6fadb021266d ("vfio/mlx5: Implement vfio_pci driver for mlx5 devices")
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions