diff options
author | Yi Liu <[email protected]> | 2023-07-18 06:55:42 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2023-07-25 10:19:26 -0600 |
commit | 38c24544e10a541d92be9d4ec2dfc8a94f4d87ba (patch) | |
tree | b3d7fdec2db9d4f09c700dbab034bbaf66c8ff53 /drivers/fpga/xilinx-selectmap.c | |
parent | 291872a533a2cdea8df1ae157987cd7ab3939421 (diff) |
vfio: Move device_del() before waiting for the last vfio_device registration refcount
device_del() destroys the vfio-dev/vfioX under the sysfs for vfio_device.
There is no reason to keep it while the device is going to be unregistered.
This movement is also a preparation for adding vfio_device cdev. Kernel
should remove the cdev node of the vfio_device to avoid new registration
refcount increment while the device is going to be unregistered.
Reviewed-by: Jason Gunthorpe <[email protected]>
Tested-by: Zhenzhong Duan <[email protected]>
Tested-by: Yanting Jiang <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions