mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] vfio/mdev: update outdated comment
@ 2025-12-30 16:41 Julia Lawall
  2026-01-05 15:04 ` Jason Gunthorpe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julia Lawall @ 2025-12-30 16:41 UTC (permalink / raw)
  To: Kirti Wankhede
  Cc: yunbolyu, kexinsun, ratnadiraw, xutong.ma, Alex Williamson, kvm,
	linux-kernel

The function add_mdev_supported_type() was renamed mdev_type_add() in
commit da44c340c4fe ("vfio/mdev: simplify mdev_type handling").
Update the comment accordingly.

Note that just as mdev_type_release() now states that its put pairs
with the get in mdev_type_add(), mdev_type_add() already stated that
its get pairs with the put in mdev_type_release().

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>

---
 drivers/vfio/mdev/mdev_sysfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vfio/mdev/mdev_sysfs.c b/drivers/vfio/mdev/mdev_sysfs.c
index e44bb44c581e..b2596020e62f 100644
--- a/drivers/vfio/mdev/mdev_sysfs.c
+++ b/drivers/vfio/mdev/mdev_sysfs.c
@@ -156,7 +156,7 @@ static void mdev_type_release(struct kobject *kobj)
 	struct mdev_type *type = to_mdev_type(kobj);
 
 	pr_debug("Releasing group %s\n", kobj->name);
-	/* Pairs with the get in add_mdev_supported_type() */
+	/* Pairs with the get in mdev_type_add() */
 	put_device(type->parent->dev);
 }
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] vfio/mdev: update outdated comment
  2025-12-30 16:41 [PATCH] vfio/mdev: update outdated comment Julia Lawall
@ 2026-01-05 15:04 ` Jason Gunthorpe
  2026-01-12  9:53 ` Kirti Wankhede
  2026-01-19 20:37 ` Alex Williamson
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2026-01-05 15:04 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Kirti Wankhede, yunbolyu, kexinsun, ratnadiraw, xutong.ma,
	Alex Williamson, kvm, linux-kernel

On Tue, Dec 30, 2025 at 05:41:13PM +0100, Julia Lawall wrote:
> The function add_mdev_supported_type() was renamed mdev_type_add() in
> commit da44c340c4fe ("vfio/mdev: simplify mdev_type handling").
> Update the comment accordingly.
> 
> Note that just as mdev_type_release() now states that its put pairs
> with the get in mdev_type_add(), mdev_type_add() already stated that
> its get pairs with the put in mdev_type_release().
> 
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
> 
> ---
>  drivers/vfio/mdev/mdev_sysfs.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] vfio/mdev: update outdated comment
  2025-12-30 16:41 [PATCH] vfio/mdev: update outdated comment Julia Lawall
  2026-01-05 15:04 ` Jason Gunthorpe
@ 2026-01-12  9:53 ` Kirti Wankhede
  2026-01-19 20:37 ` Alex Williamson
  2 siblings, 0 replies; 4+ messages in thread
From: Kirti Wankhede @ 2026-01-12  9:53 UTC (permalink / raw)
  To: Julia Lawall
  Cc: yunbolyu, kexinsun, ratnadiraw, xutong.ma, Alex Williamson, kvm,
	linux-kernel


> -----Original Message-----
> From: Julia Lawall <Julia.Lawall@inria.fr>
> Sent: 30 December 2025 10:11 PM
> To: Kirti Wankhede <kwankhede@nvidia.com>
> Cc: yunbolyu@smu.edu.sg; kexinsun@smail.nju.edu.cn;
> ratnadiraw@smu.edu.sg; xutong.ma@inria.fr; Alex Williamson
> <alex@shazbot.org>; kvm@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [PATCH] vfio/mdev: update outdated comment
> 
> The function add_mdev_supported_type() was renamed mdev_type_add() in
> commit da44c340c4fe ("vfio/mdev: simplify mdev_type handling").
> Update the comment accordingly.
> 
> Note that just as mdev_type_release() now states that its put pairs
> with the get in mdev_type_add(), mdev_type_add() already stated that
> its get pairs with the put in mdev_type_release().
> 
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
> 
> ---
>  drivers/vfio/mdev/mdev_sysfs.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] vfio/mdev: update outdated comment
  2025-12-30 16:41 [PATCH] vfio/mdev: update outdated comment Julia Lawall
  2026-01-05 15:04 ` Jason Gunthorpe
  2026-01-12  9:53 ` Kirti Wankhede
@ 2026-01-19 20:37 ` Alex Williamson
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Williamson @ 2026-01-19 20:37 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Kirti Wankhede, yunbolyu, kexinsun, ratnadiraw, xutong.ma, kvm,
	linux-kernel

On Tue, 30 Dec 2025 17:41:13 +0100
Julia Lawall <Julia.Lawall@inria.fr> wrote:

> The function add_mdev_supported_type() was renamed mdev_type_add() in
> commit da44c340c4fe ("vfio/mdev: simplify mdev_type handling").
> Update the comment accordingly.
> 
> Note that just as mdev_type_release() now states that its put pairs
> with the get in mdev_type_add(), mdev_type_add() already stated that
> its get pairs with the put in mdev_type_release().
> 
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
> 
> ---
>  drivers/vfio/mdev/mdev_sysfs.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/mdev/mdev_sysfs.c b/drivers/vfio/mdev/mdev_sysfs.c
> index e44bb44c581e..b2596020e62f 100644
> --- a/drivers/vfio/mdev/mdev_sysfs.c
> +++ b/drivers/vfio/mdev/mdev_sysfs.c
> @@ -156,7 +156,7 @@ static void mdev_type_release(struct kobject *kobj)
>  	struct mdev_type *type = to_mdev_type(kobj);
>  
>  	pr_debug("Releasing group %s\n", kobj->name);
> -	/* Pairs with the get in add_mdev_supported_type() */
> +	/* Pairs with the get in mdev_type_add() */
>  	put_device(type->parent->dev);
>  }
>  
> 
> 

Applied to vfio next branch for v6.20/7.0.  Thanks,

Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-19 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-30 16:41 [PATCH] vfio/mdev: update outdated comment Julia Lawall
2026-01-05 15:04 ` Jason Gunthorpe
2026-01-12  9:53 ` Kirti Wankhede
2026-01-19 20:37 ` Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®