[pbs-devel] [PATCH proxmox-backup 0/2] fix possible deadlock for S3 garbage

Christian Ebner c.ebner at proxmox.com
Thu Oct 2 11:11:40 CEST 2025


The first patch fixes a possible deadlock situation:
Holding a std::sync::Mutex guard across .await boundaries can lead to
deadlock situations and must be avoided by all costs. Fix one such
ocurence when deleting objects from S3 object stores while still
holding the lock.

The second patch adapts an ill-chosen method name and incorrect
comment.

These patches are followups to be applied on top of:
https://lore.proxmox.com/pbs-devel/20251001111915.2001026-1-f.gruenbichler@proxmox.com/T/

Christian Ebner (2):
  datastore: gc: drop mutex lock before entering async context
  datastore: gc: rename method and adapt incorrect comments

 pbs-datastore/src/datastore.rs | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

-- 
2.47.3





More information about the pbs-devel mailing list