[pbs-devel] applied: [PATCH proxmox-backup stable-3] fix #6566: backup: api: conditionally drop group and snapshot locks
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Oct 2 10:00:46 CEST 2025
On Wed, 01 Oct 2025 13:22:51 +0200, Christian Ebner wrote:
> To guarantee consistency by possible concurrent operations, the
> backup protocol locks the backup group, the previous backup
> snapshot (if any) and holds a lock for the newly created backup
> snapshot. All of these are currently stored in the backup worker
> task, only released on its destruction.
>
> The backup API however signals a successful backup via the return
> status of the `finish` call, while still holding the locks.
> Therefore, an immediate subsequent backup of the client to the same
> group can fail because the locks cannot be acquired until the previous
> backup task is completely destroyed, which can however outlive the
> `finish` return for some time. This manifests in e.g. a push sync job
> failing.
>
> [...]
Applied, thanks!
[1/1] fix #6566: backup: api: conditionally drop group and snapshot locks
commit: c096925472a4f4dee4bd119d0d72ca66ee44654a
Best regards,
--
Fabian Grünbichler <f.gruenbichler at proxmox.com>
More information about the pbs-devel
mailing list