* [PATCH v2, RESEND 07/10] xfs: convert to kobject_del_and_put() [not found] <20230319092641.41917-1-frank.li@vivo.com> @ 2023-03-19 9:26 ` Yangtao Li 2023-03-20 14:58 ` Darrick J. Wong 0 siblings, 1 reply; 2+ messages in thread From: Yangtao Li @ 2023-03-19 9:26 UTC (permalink / raw) To: Darrick J. Wong Cc: Yangtao Li, Greg Kroah-Hartman, Rafael J. Wysocki, linux-xfs, linux-kernel Use kobject_del_and_put() to simplify code. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: "Rafael J. Wysocki" <rafael@kernel.org> Signed-off-by: Yangtao Li <frank.li@vivo.com> --- fs/xfs/xfs_sysfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/xfs/xfs_sysfs.h b/fs/xfs/xfs_sysfs.h index 148893ebfdef..e2ff063e2c29 100644 --- a/fs/xfs/xfs_sysfs.h +++ b/fs/xfs/xfs_sysfs.h @@ -48,8 +48,7 @@ static inline void xfs_sysfs_del( struct xfs_kobj *kobj) { - kobject_del(&kobj->kobject); - kobject_put(&kobj->kobject); + kobject_del_and_put(&kobj->kobject); wait_for_completion(&kobj->complete); } -- 2.35.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2, RESEND 07/10] xfs: convert to kobject_del_and_put() 2023-03-19 9:26 ` [PATCH v2, RESEND 07/10] xfs: convert to kobject_del_and_put() Yangtao Li @ 2023-03-20 14:58 ` Darrick J. Wong 0 siblings, 0 replies; 2+ messages in thread From: Darrick J. Wong @ 2023-03-20 14:58 UTC (permalink / raw) To: Yangtao Li; +Cc: Greg Kroah-Hartman, Rafael J. Wysocki, linux-xfs, linux-kernel On Sun, Mar 19, 2023 at 05:26:38PM +0800, 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> > Signed-off-by: Yangtao Li <frank.li@vivo.com> Looks good to me, Acked-by: Darrick J. Wong <djwong@kernel.org> --D > --- > fs/xfs/xfs_sysfs.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/xfs/xfs_sysfs.h b/fs/xfs/xfs_sysfs.h > index 148893ebfdef..e2ff063e2c29 100644 > --- a/fs/xfs/xfs_sysfs.h > +++ b/fs/xfs/xfs_sysfs.h > @@ -48,8 +48,7 @@ static inline void > xfs_sysfs_del( > struct xfs_kobj *kobj) > { > - kobject_del(&kobj->kobject); > - kobject_put(&kobj->kobject); > + kobject_del_and_put(&kobj->kobject); > wait_for_completion(&kobj->complete); > } > > -- > 2.35.1 > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-20 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230319092641.41917-1-frank.li@vivo.com>
2023-03-19 9:26 ` [PATCH v2, RESEND 07/10] xfs: convert to kobject_del_and_put() Yangtao Li
2023-03-20 14:58 ` Darrick J. Wong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox