RE: [PATCH 08/18] vfio/mdev: Reorganize mdev_device_create()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Tian, Kevin <kevin.tian@xxxxxxxxx>
> Sent: Friday, March 26, 2021 11:34 AM
> 
> > From: Christoph Hellwig <hch@xxxxxx>
> > Sent: Wednesday, March 24, 2021 3:21 AM
> >
> > >  	up_read(&parent->unreg_sem);
> > > -	put_device(&mdev->dev);
> > >  mdev_fail:
> > >
> > >
> > >
> > > -	mdev_put_parent(parent);
> > > +	put_device(&mdev->dev);
> >
> > That mdev_fail label is not very descriptive, what about free_device
> > instead?
> >
> 
> There is only one goto to this place after this patch. Possibly just
> call it trylock_fail.

oops, please forget this comment as another goto comes in next patch...




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux