]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: applets: Don't use task_in_rq().
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 17 Apr 2019 17:29:35 +0000 (19:29 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 17 Apr 2019 17:30:23 +0000 (19:30 +0200)
commit51205a1958f5e83121deac1d4e818bd5712fe12d
treede609ee16a351920f17f8df5d7a7085ca430e2e4
parent0c7a4b6371160a8fb69d2e284f0a402c7e06d99f
BUG/MEDIUM: applets: Don't use task_in_rq().

When deciding if we want to wake the task of an applet up, don't give up
if task_in_rq returns 1, as there's a race condition and another thread
may run it. Instead, always attempt to task_wakeup(), at worst the task
is already in the run queue, and nothing will happen.
src/stream_interface.c