summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>2025-09-10 18:14:19 +0300
committerPaul E. McKenney <paulmck@kernel.org>2025-09-15 15:20:09 +0300
commitfb7855a6b58b045f60a7456096da29842e9ca079 (patch)
treea81e3ac5ed0e48aca70d5adaaab18cb52e48003e /tools/testing/selftests/net/lib/py/utils.py
parent9a0352dd45225597cb8d4a4d79cf5b53f3609ae3 (diff)
downloadlinux-fb7855a6b58b045f60a7456096da29842e9ca079.tar.xz
refperf: Remove redundant kfree() after torture_stop_kthread()
Remove unnecessary kfree(main_task) call in ref_scale_cleanup() as torture_stop_kthread() already handles the memory cleanup for the task structure internally. The additional kfree(main_task) call after torture_stop_kthread() is redundant and confusing since torture_stop_kthread() sets the pointer to NULL, making this a no-op. This pattern is consistent with other torture test modules where torture_stop_kthread() is called without explicit kfree() of the task pointer, as the torture framework manages the task lifecycle internally. Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions