From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [PATCH proxmox-backup 0/4] don't hold datastore config lock during s3-refresh
Date: Tue, 5 May 2026 10:11:32 +0200 [thread overview]
Message-ID: <20260505081137.227901-1-c.ebner@proxmox.com> (raw)
Currently an s3-refresh runs while holding the datastore config lock,
with the intention to block from accidentail leaving the
corresponding maintenance mode, assuring consistency.
However, this also blocks config access by all unrelated datastores,
similar to mount/unmount for removable datastores, but for s3-refresh
this is not acceptable since it can take significantly more time or
block on network issues until timeouts are reached.
Instead, implement per-datastore locks for maintenance-mode changes,
and rely on these to block unexpected maintenance-mode changes.
The first 3 patches are code style and refactoring only, the last patch
actually introduces the maintenance-mode locks.
Reported in the community forum: https://forum.proxmox.com/threads/183244/
Christian Ebner (4):
pbs-config: reorganize crate use statements
datastore: move lock files base path constant to central location
datastore: move file lock helper to centralized place
api/datastore: use maintenance-mode lock to protect against changes
pbs-config/src/lib.rs | 18 +++++++------
pbs-datastore/src/backup_info.rs | 36 ++-----------------------
pbs-datastore/src/chunk_store.rs | 5 ++--
pbs-datastore/src/datastore.rs | 2 ++
pbs-datastore/src/lib.rs | 45 +++++++++++++++++++++++++++++++
pbs-datastore/src/move_journal.rs | 2 +-
src/api2/admin/datastore.rs | 26 +++++++++++++-----
src/api2/config/datastore.rs | 6 ++++-
8 files changed, 87 insertions(+), 53 deletions(-)
--
2.47.3
next reply other threads:[~2026-05-05 8:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-05 8:11 Christian Ebner [this message]
2026-05-05 8:11 ` [PATCH proxmox-backup 1/4] pbs-config: reorganize crate use statements Christian Ebner
2026-05-05 12:15 ` applied: " Fabian Grünbichler
2026-05-05 8:11 ` [PATCH proxmox-backup 2/4] datastore: move lock files base path constant to central location Christian Ebner
2026-05-05 8:11 ` [PATCH proxmox-backup 3/4] datastore: move file lock helper to centralized place Christian Ebner
2026-05-05 12:15 ` Fabian Grünbichler
2026-05-05 8:11 ` [PATCH proxmox-backup 4/4] api/datastore: use maintenance-mode lock to protect against changes Christian Ebner
2026-05-05 12:14 ` Fabian Grünbichler
2026-05-05 13:02 ` Christian Ebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260505081137.227901-1-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox