diff options
author | Zqiang <qiang.zhang1211@gmail.com> | 2023-10-11 11:27:59 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-10-12 20:34:07 +0300 |
commit | 7b42f401fc6571b6604441789d892d440829e33c (patch) | |
tree | 7a658c200e6face61e064eadf5c87a887427348b /fs/timerfd.c | |
parent | bd9e7326b8d512ee724006d4ec06dfbf3096ae9e (diff) | |
download | linux-7b42f401fc6571b6604441789d892d440829e33c.tar.xz |
workqueue: Use the kmem_cache_free() instead of kfree() to release pwq
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>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions