From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>,
<edumazet@google.com>, <pabeni@redhat.com>, <hawk@kernel.org>,
<ilias.apalodimas@linaro.org>, <asml.silence@gmail.com>,
<almasrymina@google.com>
Subject: Re: [PATCH net-next] net: page_pool: rename page_pool_is_last_ref()
Date: Fri, 13 Dec 2024 16:43:05 +0100 [thread overview]
Message-ID: <1e4cbdd4-691e-45cc-a2eb-c9ae76cc88fe@intel.com> (raw)
In-Reply-To: <20241213153759.3086474-1-kuba@kernel.org>
From: Jakub Kicinski <kuba@kernel.org>
Date: Fri, 13 Dec 2024 07:37:59 -0800
> page_pool_is_last_ref() releases a reference while the name,
> to me at least, suggests it just checks if the refcount is 1.
> The semantics of the function are the same as those of
> atomic_dec_and_test() and refcount_dec_and_test(), so just
> use the _and_test() suffix.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Makes sense to me, I think I had issues in the past with references
while developing stuff, as I thought this function doesn't modify
anything :D
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
> ---
> Hopefully this doesn't conflict with anyone's work, I've been
> deferring sending this rename forever because I always look
> at it while reviewing an in-flight series and then I'm worried
> it will conflict.
Thanks,
Olek
next prev parent reply other threads:[~2024-12-13 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 15:37 [PATCH net-next] net: page_pool: rename page_pool_is_last_ref() Jakub Kicinski
2024-12-13 15:43 ` Alexander Lobakin [this message]
2024-12-13 17:43 ` Ilias Apalodimas
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=1e4cbdd4-691e-45cc-a2eb-c9ae76cc88fe@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=almasrymina@google.com \
--cc=asml.silence@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=ilias.apalodimas@linaro.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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