haproxy/include/types
Willy Tarreau 13afcb7ab3 BUG/MINOR: task: fix possibly missed event in inter-thread wakeups
There's a very small but existing uncertainty window when waking another
thread up where it is possible for task_wakeup() not to wake the other
task up because it's still running while this once is in the process of
finishing and loses its TASK_RUNNING flag. In this case the wakeup will
be missed.

The problem is that we have a single flag to store 3 states, since the
transition from running to sleeping isn't atomic. Thus we need to have
another flag to cover this part. This patch introduces TASK_QUEUED to
mention that the task is already in the run queue, running or not. This
bit will be removed while TASK_RUNNING is kept once dequeued, and will
be used when removing TASK_RUNNING to check if the task has been requeued.

It might be possible to slightly improve this but the occurrence rate
is quite low and we don't really need to complexify the scheduler to
optimize for a rare case.

The impact with the current code is very low since we have few inter-
thread wakeups. Most of them are caused by checks killing sessions.

This must be backported to 1.9.
2019-01-28 15:03:04 +01:00
..
acl.h
action.h MINOR: http: Make new "early-hint" http-request action really be parsed. 2018-11-12 21:08:55 +01:00
activity.h MINOR: activity: report the average loop time in "show activity" 2018-11-22 11:48:41 +01:00
applet.h MEDIUM: cli: store CLI level in the appctx 2018-12-13 09:45:16 +01:00
arg.h
auth.h
backend.h MEDIUM: backend: move all LB algo parameters into an union 2019-01-14 19:33:17 +01:00
cache.h
capture.h
channel.h MEDIUM: channel: reorder the channel analyzers for the cli 2018-10-28 14:13:31 +01:00
checks.h MINOR: checks: Store the proxy in checks. 2019-01-14 11:15:11 +01:00
cli.h MEDIUM: cli: disable some keywords in the master 2018-10-28 13:51:39 +01:00
compression.h
connection.h MINOR: connections: Remove a stall comment. 2019-01-04 17:26:47 +01:00
counters.h MINOR: cache: report the number of cache lookups and cache hits 2018-12-14 14:00:25 +01:00
dns.h BUG: dns: Fix off-by-one write in dns_validate_dns_response() 2018-12-12 14:44:52 +01:00
fd.h CLEANUP: Fix typos in the file descriptor subsystem 2018-12-02 18:43:25 +01:00
filters.h MAJOR: filters: Adapt filters API to be compatible with the HTX represenation 2018-12-01 17:37:27 +01:00
freq_ctr.h
global.h MINOR: cli: implements 'reload' on master CLI 2018-12-15 13:33:49 +01:00
hdr_idx.h
hlua.h REORG: h1: move the h1_state definition to proto_http 2018-12-11 17:15:13 +01:00
http_htx.h REORG: htx: merge types+proto into common/htx.h 2018-12-11 17:15:04 +01:00
lb_chash.h MINOR: backend: move hash_balance_factor out of chash 2019-01-14 19:33:17 +01:00
lb_fas.h
lb_fwlc.h
lb_fwrr.h
lb_map.h
listener.h CLEANUP: Fix a typo in the listener subsystem 2018-12-02 18:43:28 +01:00
log.h MEDIUM: log: add a new "raw" format 2018-11-12 18:37:55 +01:00
mailers.h
map.h
obj_type.h
pattern.h
peers.h MINOR: peers: Make outgoing connection to SSL/TLS peers work. 2019-01-18 14:26:21 +01:00
pipe.h
port_range.h
proto_http.h CLEANUP: h1: remove some occurrences of unneeded h1.h inclusions 2018-12-11 17:15:13 +01:00
proto_udp.h
protocol.h
proxy.h MINOR: backend: remap the balance uri settings to lbprm.arg_opt{1,2,3} 2019-01-14 19:33:17 +01:00
queue.h
sample.h
server.h MINOR: server: add a max-reuse parameter 2019-01-24 19:06:43 +01:00
session.h MEDIUM: sessions: Keep track of which connections are idle. 2018-12-28 19:16:03 +01:00
shctx.h MINOR: shctx: Change max. object size type to unsigned int. 2018-10-26 04:54:40 +02:00
signal.h
spoe.h
ssl_sock.h MINOR: ssl: add support of aes256 bits ticket keys on file and cli. 2019-01-14 19:32:58 +01:00
stats.h MINOR: cache: report the number of cache lookups and cache hits 2018-12-14 14:00:25 +01:00
stick_table.h
stream_interface.h CLEANUP: stream-int: consistently call the si/stream_int functions 2018-12-19 15:25:43 +01:00
stream.h MEDIUM: cli: handle CLI level from the master CLI 2018-12-13 09:45:16 +01:00
task.h BUG/MINOR: task: fix possibly missed event in inter-thread wakeups 2019-01-28 15:03:04 +01:00
template.h
vars.h