[Intel-gfx] [PATCH 9/9] vfio: Remove calls to vfio_group_add_container_user()

Tian, Kevin kevin.tian at intel.com
Fri Apr 15 23:45:14 UTC 2022


> From: Jason Gunthorpe <jgg at nvidia.com>
> Sent: Friday, April 15, 2022 8:07 PM
> 
> On Fri, Apr 15, 2022 at 02:32:08AM +0000, Tian, Kevin wrote:
> 
> > While it's a welcomed fix is it actually related to this series? The point
> > of this patch is that those functions are called when container_users
> > is non-zero. This is true even without this fix given container_users
> > is decremented after calling device->ops->close_device().
> 
> It isn't, it is decremented before which causes it to be 0 when the
> assertions are called.
> 

right, it's quite obvious when I read it the second time. 


More information about the Intel-gfx mailing list