[pve-devel] applied: [PATCH qemu-server 2/2] api: template: invert lock and fork

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Oct 4 09:46:54 CEST 2021


On 10.09.21 09:48, Fabian Grünbichler wrote:
> like for other API calls, repeat the cheap checks done for early abort
> before forking and without locks after forking and obtaining the lock,
> and only hold the flock in the forked worker instead of across the fork.
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> not sure whether we want to switch to the "progress bar -> task viewer"
> thing in the GUI for this endpoint? it's usually instant, except when
> the storage is very slow/overloaded/..
> 
>  PVE/API2/Qemu.pm | 23 ++++++++++++++---------
>  1 file changed, 14 insertions(+), 9 deletions(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list