On 3/23/2019 4:50 AM, Parav Pandit wrote:
> Remove unused kref from the mdev_device structure.
>
> Fixes: 7b96953bc640 ("vfio: Mediated device Core driver")
> Signed-off-by: Parav Pandit <[email protected]>
> ---
> drivers/vfio/mdev/mdev_core.c | 1 -
> drivers/vfio/mdev/mdev_private.h | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c
> index 4f213e4d..3d91f62 100644
> --- a/drivers/vfio/mdev/mdev_core.c
> +++ b/drivers/vfio/mdev/mdev_core.c
> @@ -311,7 +311,6 @@ int mdev_device_create(struct kobject *kobj, struct
> device *dev, uuid_le uuid)
> mutex_unlock(&mdev_list_lock);
>
> mdev->parent = parent;
> - kref_init(&mdev->ref);
>
> mdev->dev.parent = dev;
> mdev->dev.bus = &mdev_bus_type;
> diff --git a/drivers/vfio/mdev/mdev_private.h
> b/drivers/vfio/mdev/mdev_private.h
> index b5819b7..84b2b6c 100644
> --- a/drivers/vfio/mdev/mdev_private.h
> +++ b/drivers/vfio/mdev/mdev_private.h
> @@ -30,7 +30,6 @@ struct mdev_device {
> struct mdev_parent *parent;
> uuid_le uuid;
> void *driver_data;
> - struct kref ref;
> struct list_head next;
> struct kobject *type_kobj;
> bool active;
>
Yes, this should be removed.
Reviewed By: Kirti Wankhede <[email protected]>
Thanks,
Kirti
- Re: [PATCH 4/8] vfio/mdev: Drop redundant extern for ... Maxim Levitsky
- Re: [PATCH 4/8] vfio/mdev: Drop redundant extern for ... Kirti Wankhede
- Re: [PATCH 4/8] vfio/mdev: Drop redundant extern ... Alex Williamson
- RE: [PATCH 4/8] vfio/mdev: Drop redundant ext... Parav Pandit
- [PATCH 6/8] vfio/mdev: Follow correct remove sequence Parav Pandit
- Re: [PATCH 6/8] vfio/mdev: Follow correct remove sequ... Maxim Levitsky
- Re: [PATCH 6/8] vfio/mdev: Follow correct remove sequ... Alex Williamson
- RE: [PATCH 6/8] vfio/mdev: Follow correct remove ... Parav Pandit
- [PATCH 3/8] vfio/mdev: Removed unused kref Parav Pandit
- Re: [PATCH 3/8] vfio/mdev: Removed unused kref Maxim Levitsky
- Re: [PATCH 3/8] vfio/mdev: Removed unused kref Kirti Wankhede
- [PATCH 8/8] vfio/mdev: Improve the create/remove sequence Parav Pandit
- Re: [PATCH 8/8] vfio/mdev: Improve the create/remove ... Maxim Levitsky
- RE: [PATCH 8/8] vfio/mdev: Improve the create/rem... Parav Pandit
- Re: [PATCH 8/8] vfio/mdev: Improve the create/remove ... Alex Williamson
- RE: [PATCH 8/8] vfio/mdev: Improve the create/rem... Parav Pandit
- Re: [PATCH 8/8] vfio/mdev: Improve the create... Alex Williamson
- RE: [PATCH 8/8] vfio/mdev: Improve the cr... Parav Pandit
- Re: [PATCH 8/8] vfio/mdev: Improve t... Alex Williamson
- RE: [PATCH 8/8] vfio/mdev: Impro... Parav Pandit
- RE: [PATCH 8/8] vfio/mdev: Impro... Parav Pandit

