[Ocfs2-devel] [PATCH v3 01/10] kobject: introduce kobject_del_and_put()

Yangtao Li frank.li at vivo.com
Tue Apr 4 13:30:37 UTC 2023


> kobject_put() actually covers kobject removal automatically, which is
> single stage removal. So if you see the two called together, it is
> safe to kill kobject_del() directly.

If the reference count is not abnormal, kobject_put() does contain
what kobject_del() does.

Thx,
Yangtao



More information about the Ocfs2-devel mailing list