From: Yangtao Li <frank.li@vivo.com>
To: ming.lei@redhat.com
Cc: anna@kernel.org, chao@kernel.org, clm@fb.com,
damien.lemoal@opensource.wdc.com, djwong@kernel.org,
dsterba@suse.com, frank.li@vivo.com, gregkh@linuxfoundation.org,
huyue2@coolpad.com, jaegeuk@kernel.org,
jefflexu@linux.alibaba.com, jlbec@evilplan.org,
josef@toxicpanda.com, joseph.qi@linux.alibaba.com,
jth@kernel.org, konishi.ryusuke@gmail.com,
linux-btrfs@vger.kernel.org, linux-erofs@lists.ozlabs.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org,
linux-nilfs@vger.kernel.org, linux-xfs@vger.kernel.org,
mark@fasheh.com, naohiro.aota@wdc.com,
ocfs2-devel@oss.oracle.com, rafael@kernel.org, richard@nod.at,
trond.myklebust@hammerspace.com, xiang@kernel.org
Subject: Re: [PATCH v3 01/10] kobject: introduce kobject_del_and_put()
Date: Tue, 4 Apr 2023 21:30:37 +0800 [thread overview]
Message-ID: <20230404133037.66927-1-frank.li@vivo.com> (raw)
In-Reply-To: <ZBvgpBzEuFuyOD/c@ovpn-8-16.pek2.redhat.com>
> 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
next prev parent reply other threads:[~2023-04-04 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-22 16:58 [PATCH v3 01/10] kobject: introduce kobject_del_and_put() Yangtao Li via Linux-f2fs-devel
2023-03-22 23:31 ` Damien Le Moal
2023-03-23 5:16 ` Ming Lei
2023-04-04 13:30 ` Yangtao Li [this message]
2023-03-23 12:26 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230404133037.66927-1-frank.li@vivo.com \
--to=frank.li@vivo.com \
--cc=anna@kernel.org \
--cc=chao@kernel.org \
--cc=clm@fb.com \
--cc=damien.lemoal@opensource.wdc.com \
--cc=djwong@kernel.org \
--cc=dsterba@suse.com \
--cc=gregkh@linuxfoundation.org \
--cc=huyue2@coolpad.com \
--cc=jaegeuk@kernel.org \
--cc=jefflexu@linux.alibaba.com \
--cc=jlbec@evilplan.org \
--cc=josef@toxicpanda.com \
--cc=joseph.qi@linux.alibaba.com \
--cc=jth@kernel.org \
--cc=konishi.ryusuke@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-nilfs@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=mark@fasheh.com \
--cc=ming.lei@redhat.com \
--cc=naohiro.aota@wdc.com \
--cc=ocfs2-devel@oss.oracle.com \
--cc=rafael@kernel.org \
--cc=richard@nod.at \
--cc=trond.myklebust@hammerspace.com \
--cc=xiang@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).