On Wed, Aug 25, 2021 at 06:19:05PM +0200, Christoph Hellwig wrote: > Factor out a helper to find or allocate the vfio_group to reduce the > spagetthi code in vfio_register_group_dev a little. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- > drivers/vfio/vfio.c | 51 ++++++++++++++++++++++++++------------------- > 1 file changed, 30 insertions(+), 21 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason