From: Tejun Heo <tj@kernel.org>
To: Zqiang <qiang.zhang1211@gmail.com>
Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] workqueue: Use the kmem_cache_free() instead of kfree() to release pwq
Date: Thu, 12 Oct 2023 07:34:27 -1000 [thread overview]
Message-ID: <ZSguI0D8RUgwlpKc@slm.duckdns.org> (raw)
In-Reply-To: <20231011082759.8570-1-qiang.zhang1211@gmail.com>
On Wed, Oct 11, 2023 at 04:27:59PM +0800, Zqiang wrote:
> Currently, the kfree() be used for pwq objects allocated with
> kmem_cache_alloc() in alloc_and_link_pwqs(), this isn't wrong.
> but usually, use "trace_kmem_cache_alloc/trace_kmem_cache_free"
> to track memory allocation and free. this commit therefore use
> kmem_cache_free() instead of kfree() in alloc_and_link_pwqs()
> and also consistent with release of the pwq in rcu_free_pwq().
>
> Signed-off-by: Zqiang <qiang.zhang1211@gmail.com>
Applied to wq/for-6.6-fixes.
Thanks.
--
tejun
prev parent reply other threads:[~2023-10-12 17:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 8:27 Zqiang
2023-10-12 17:34 ` Tejun Heo [this message]
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=ZSguI0D8RUgwlpKc@slm.duckdns.org \
--to=tj@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=qiang.zhang1211@gmail.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
all inboxes | Powered by JetHome®