mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-05 15:27:44 -04:00
MINOR: task: make task_instant_wakeup() explicitly call _tasklet_wakeup_here()
This patch moves the tid check upper in the chain, in task_instant_wakeup() so as to branch to _tasklet_wakeup_here() for run-anywhere tasks, or _tasklet_wakeup_on() for designated threads. At this point there is no longer any direct caller of __tasklet_wakeup_on() passing a negative thread value.
This commit is contained in:
parent
721e932115
commit
56f6a049bd
1 changed files with 4 additions and 1 deletions
|
|
@ -581,7 +581,10 @@ static inline void _task_instant_wakeup(struct task *t, unsigned int f, const st
|
|||
#endif
|
||||
}
|
||||
|
||||
__tasklet_wakeup_on((struct tasklet *)t, thr);
|
||||
if (thr < 0)
|
||||
__tasklet_wakeup_here((struct tasklet *)t);
|
||||
else
|
||||
__tasklet_wakeup_on((struct tasklet *)t, thr);
|
||||
}
|
||||
|
||||
/* schedules tasklet <tl> to run immediately after the current one is done
|
||||
|
|
|
|||
Loading…
Reference in a new issue