[pbs-devel] applied: [PATCH proxmox v2 2/4] rest-server: close race window when updating worker task count
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Dec 2 16:57:44 CET 2024
Am 02.12.24 um 14:04 schrieb Fabian Grünbichler:
> this mimics how the count is updated when spawning a new task - the lock scope
> needs to cover the count update itself, else there's a race when multiple
> worker's log their result at the same time..
>
> Co-developed-by: Dominik Csapak <d.csapak at proxmox.com>
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> v2: added more comments for current and future readers :)
>
> proxmox-rest-server/src/worker_task.rs | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
>
applied, thanks!
More information about the pbs-devel
mailing list