mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-11 14:53:05 -05:00
MINOR: tasks/debug: make the thread affinity BUG_ON check a bit stricter
The BUG_ON() test in task_queue() only tests for the case where we're queuing a task that doesn't run on the current thread. Let's refine it a bit further to catch all cases where the task does not run *exactly* on the current thread alone.
This commit is contained in:
parent
783afbe93b
commit
2447bce554
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ static inline void task_queue(struct task *task)
|
|||
} else
|
||||
#endif
|
||||
{
|
||||
BUG_ON((task->thread_mask & tid_bit) == 0); // should have TASK_SHARED_WQ
|
||||
BUG_ON(task->thread_mask != tid_bit); // should have TASK_SHARED_WQ
|
||||
if (!task_in_wq(task) || tick_is_lt(task->expire, task->wq.key))
|
||||
__task_queue(task, &sched->timers);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue