On Fri, Jun 02, 2023 at 05:16:45AM -0700, Yi Liu wrote: > This avoids endless vfio_device refcount increasement by userspace, > which would keep blocking the vfio_unregister_group_dev(). > > Tested-by: Yanting Jiang <[email protected]> > Tested-by: Shameer Kolothum <[email protected]> > Tested-by: Terrence Xu <[email protected]> > Signed-off-by: Yi Liu <[email protected]> > --- > drivers/vfio/vfio_main.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-)
Reviewed-by: Jason Gunthorpe <[email protected]> It looks OK, at least I couldn't find a reason why the group list would need to continue to be valid while we are waiting for the registration lock to release. Jason
