Re: [PATCH v3 01/10] kobject: introduce kobject_del_and_put()

From: Yangtao Li
Date: Tue Apr 04 2023 - 09:31:01 EST


> 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