From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com, Jonas Theisen <j.theisen@proxmox.com>
Subject: applied: [PATCH storage 0/2] rbd: avoid hanging VM start on EFI disk cache policy
Date: Tue, 24 Nov 2026 08:59:53 +0100 [thread overview]
Message-ID: <179550708166.3226985.2308392635577088410.b4-ty@b4> (raw)
In-Reply-To: <20261120141020.243160-1-j.theisen@proxmox.com>
On Fri, 20 Nov 2026 15:10:05 +0100, Jonas Theisen wrote:
> Starting a VM with an EFI disk on RBD sets the rbd_cache_policy image
> config on every start. On the target of a live migration, the source
> VM still holds the exclusive lock, so librbd forwards the write to it
> and re-sends the request every 30 seconds until the lock owner reports
> completion. 'rbd config image set' then hangs without end if:
>
> - the lock owner never reports completion, or
> - the completion arrives just after a re-send timed out, but before
> the request is sent again. The requester drops it, and the lock
> owner answers every further re-send of the finished request with its
> result, 0 on success. That is the same answer as for a request still
> in progress, so the requester waits for a completion that is never
> sent again. See prepare_async_request() in librbd's ImageWatcher.cc.
>
> [...]
Applied, thanks!
I folded a few changes into both patches, see the [TL: ...] notes:
- Stopping the start task while 'rbd config image get' or 'set' ran was
caught like any other error, so the VM start went on. An interrupt now
aborts the start again, as it did before the series.
- A failed 'set' now warns through log_warn, so the task ends with a
warning instead of OK.
- The 30 second retry is only the default of the request timeout, which
the comment and both messages now say. Patch 1 got a Fixes trailer.
[1/2] rbd: only set image config if the value differs
https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=a741eff3af24f5aadac218c65abb7c64697a4f04
[2/2] rbd: do not let setting the EFI disk cache policy block VM start
https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=ce24432bc405a86b67e7b9c52bb0d2851f30ba00
prev parent reply other threads:[~2026-11-24 8:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 14:10 [PATCH storage 0/2] rbd: avoid hanging VM start on EFI disk cache policy Jonas Theisen
2026-11-20 14:10 ` [PATCH storage 1/2] rbd: only set image config if the value differs Jonas Theisen
2026-11-20 14:10 ` [PATCH storage 2/2] rbd: do not let setting the EFI disk cache policy block VM start Jonas Theisen
2026-11-24 7:59 ` Thomas Lamprecht [this message]
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=179550708166.3226985.2308392635577088410.b4-ty@b4 \
--to=t.lamprecht@proxmox.com \
--cc=j.theisen@proxmox.com \
--cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.