]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: limit the remote thread wakeup to the global runqueue only
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 15:44:51 +0000 (16:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 16:42:04 +0000 (17:42 +0100)
commiteeffb3df415d8f658e139f9a78adaf9d08212617
tree5b44c895636ad7367b66ae271968da71bb6ce137
parent018564eaa254c8ffe46cfff065f41798e17e5642
MINOR: task: limit the remote thread wakeup to the global runqueue only

The test in __task_wakeup() to figure if the remote threads are sleeping
doesn't make sense outside of the global runqueue test, since there are
only two possibilities here: local runqueue or global runqueue, hence a
sleeping thread is another one and can only happen when sending to the
global run queue. Let's move the test inside the "if" block.
src/task.c