* [PATCH v3 04/10] zonefs: convert to kobject_del_and_put()
[not found] <20230322165905.55389-1-frank.li@vivo.com>
@ 2023-03-22 16:58 ` Yangtao Li
2023-03-22 23:33 ` Damien Le Moal
0 siblings, 1 reply; 2+ messages in thread
From: Yangtao Li @ 2023-03-22 16:58 UTC (permalink / raw)
To: Damien Le Moal, Naohiro Aota, Johannes Thumshirn
Cc: Yangtao Li, Greg Kroah-Hartman, Rafael J. Wysocki, linux-fsdevel,
linux-kernel
Use kobject_del_and_put() to simplify code.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
fs/zonefs/sysfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/zonefs/sysfs.c b/fs/zonefs/sysfs.c
index 8ccb65c2b419..5e117188fbb5 100644
--- a/fs/zonefs/sysfs.c
+++ b/fs/zonefs/sysfs.c
@@ -113,8 +113,7 @@ void zonefs_sysfs_unregister(struct super_block *sb)
if (!sbi || !sbi->s_sysfs_registered)
return;
- kobject_del(&sbi->s_kobj);
- kobject_put(&sbi->s_kobj);
+ kobject_del_and_put(&sbi->s_kobj);
wait_for_completion(&sbi->s_kobj_unregister);
}
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 04/10] zonefs: convert to kobject_del_and_put()
2023-03-22 16:58 ` [PATCH v3 04/10] zonefs: convert to kobject_del_and_put() Yangtao Li
@ 2023-03-22 23:33 ` Damien Le Moal
0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2023-03-22 23:33 UTC (permalink / raw)
To: Yangtao Li, Naohiro Aota, Johannes Thumshirn
Cc: Greg Kroah-Hartman, Rafael J. Wysocki, linux-fsdevel,
linux-kernel
On 3/23/23 01:58, Yangtao Li wrote:
> Use kobject_del_and_put() to simplify code.
>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> Cc: Damien Le Moal <damien.lemoal@opensource.wdc.com>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-22 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230322165905.55389-1-frank.li@vivo.com>
2023-03-22 16:58 ` [PATCH v3 04/10] zonefs: convert to kobject_del_and_put() Yangtao Li
2023-03-22 23:33 ` Damien Le Moal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).