BUG/MAJOR: tasks: Use the TASK_GLOBAL flag to know if we're in the global rq.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 14 Mar 2019 15:14:04 +0000 (16:14 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 14 Mar 2019 15:19:11 +0000 (16:19 +0100)
commit1d7f37a2cb395323605e474c1539836e609734b0
tree264c709f5d7bfeae8b85d412f8061627b4d824e9
parent237985b22800113ac35983626b0a4b22aadee6af
BUG/MAJOR: tasks: Use the TASK_GLOBAL flag to know if we're in the global rq.

In task_unlink_rq, to decide if we should logk the global runqueue lock,
use the TASK_GLOBAL flag instead of relying on t->thread_mask being tid_bit,
as it could be so while still being in the global runqueue if another thread
woke that task for us.

This should be backported to 1.9.
include/proto/task.h