public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup v2 0/3] rework GC-related locks
@ 2025-10-02  7:27 Fabian Grünbichler
  2025-10-02  7:27 ` [pbs-devel] [PATCH proxmox-backup v2 1/3] GC: rework locking logic Fabian Grünbichler
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Fabian Grünbichler @ 2025-10-02  7:27 UTC (permalink / raw)
  To: pbs-devel

this series reworks some of the locking behaviour surrounding GC.

the first patch removes a potentially problematic combination of
std::sync::Mutex and async S3 code (this should be the last such code
path), by storing the ProcessLocker guard inside the mutex while holding
it just for storing/querying/dropping that guard, instead of for the
duration of GC.

the second and third patches get rid of racy interactions between
pre-reload backup sessions and post-reload GC tasks. while this race
doesn't lead to data loss, it breaks the expected priority of such
tasks.

v2: rework first patch to keep locking the Mutex first

Fabian Grünbichler (3):
  GC: rework locking logic
  backup env: keep a shared chunk store lock for duration of backup
  index writers: remove chunk store lock

 pbs-datastore/src/datastore.rs     | 527 +++++++++++++++--------------
 pbs-datastore/src/dynamic_index.rs |   6 +-
 pbs-datastore/src/fixed_index.rs   |   6 +-
 src/api2/backup/environment.rs     |   5 +
 src/api2/backup/mod.rs             |   4 +-
 5 files changed, 285 insertions(+), 263 deletions(-)

-- 
2.47.3



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-02 12:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-02  7:27 [pbs-devel] [PATCH proxmox-backup v2 0/3] rework GC-related locks Fabian Grünbichler
2025-10-02  7:27 ` [pbs-devel] [PATCH proxmox-backup v2 1/3] GC: rework locking logic Fabian Grünbichler
2025-10-02  7:27 ` [pbs-devel] [PATCH proxmox-backup v2 2/3] backup env: keep a shared chunk store lock for duration of backup Fabian Grünbichler
2025-10-02  7:27 ` [pbs-devel] [PATCH proxmox-backup v2 3/3] index writers: remove chunk store lock Fabian Grünbichler
2025-10-02  9:22 ` [pbs-devel] [PATCH proxmox-backup v2 0/3] rework GC-related locks Christian Ebner
2025-10-02 12:10 ` [pbs-devel] applied-series: " Fabian Grünbichler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal