linux/drivers/vfio/mdev
Jason Gunthorpe fbea432390 vfio/mdev: Remove duplicate storage of parent in mdev_device
mdev_device->type->parent is the same thing.

The struct mdev_device was relying on the kref on the mdev_parent to also
indirectly hold a kref on the mdev_type pointer. Now that the type holds a
kref on the parent we can directly kref the mdev_type and remove this
implicit relationship.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Message-Id: <10-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2021-04-07 15:39:18 -06:00
..
Kconfig docs: driver-api: add a series of orphaned documents 2019-07-15 11:03:02 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mdev_core.c vfio/mdev: Remove duplicate storage of parent in mdev_device 2021-04-07 15:39:18 -06:00
mdev_driver.c vfio/mdev: Simplify driver registration 2021-04-07 15:39:16 -06:00
mdev_private.h vfio/mdev: Expose mdev_get/put_parent to mdev_private.h 2021-04-07 15:39:17 -06:00
mdev_sysfs.c vfio/mdev: Add missing reference counting to mdev_type 2021-04-07 15:39:17 -06:00
vfio_mdev.c vfio/mdev: Remove duplicate storage of parent in mdev_device 2021-04-07 15:39:18 -06:00