From: Olivier Houchard Date: Thu, 11 Jun 2026 14:20:29 +0000 (+0200) Subject: MINOR: tasks: Use __task_get_current_owner() in task_kill. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95cb3251a07a7b80765b3f999324678eb1c331a5;p=thirdparty%2Fhaproxy.git MINOR: tasks: Use __task_get_current_owner() in task_kill. In task_kill(), to know which thread to send the task to, use __task_get_current_owner(), in preparation for future changes. --- diff --git a/src/task.c b/src/task.c index 0d866ddd9..80f336803 100644 --- a/src/task.c +++ b/src/task.c @@ -86,7 +86,9 @@ void task_kill(struct task *t) * Note: that's a task so it must be accounted for as such. Pick * the task's first thread for the job. */ - thr = t->tid >= 0 ? t->tid : tid; + thr = __task_get_current_owner(t->tid); + if (thr == -1) + thr = tid; /* Beware: tasks that have never run don't have their ->list empty yet! */ MT_LIST_APPEND(&ha_thread_ctx[thr].shared_tasklet_list,