commit | 45499c56d30a00ada0dda5d96fac3bde293d0d5b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Feb 25 07:51:18 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Feb 25 09:44:16 2021 +0100 |
tree | dcc87e7e87b53bc52b796be2f96b743d9b8b9bad | |
parent | c03fbeb3586246852c3757898588aad00fb17bcc [diff] |
MINOR: task: make grq_total atomic to move it outside of the grq_lock Instead of decrementing grq_total once per task picked from the global run queue, let's do it at once after the loop like we do for other counters. This simplifies the code everywhere. It is not expected to bring noticeable improvements however, since global tasks tend to be less common nowadays.