[Intel-gfx] [PATCH 9/9] vfio: Remove calls to vfio_group_add_container_user()
Christoph Hellwig
hch at lst.de
Wed Apr 13 06:11:05 UTC 2022
On Tue, Apr 12, 2022 at 12:53:36PM -0300, Jason Gunthorpe wrote:
> + if (WARN_ON(!READ_ONCE(vdev->open_count)))
> + return -EINVAL;
I think all the WARN_ON()s in this patch need to be WARN_ON_ONCE,
otherwise there will be too many backtraces to be useful if a driver
ever gets the API wrong.
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the Intel-gfx
mailing list