5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

cfg2cmd/drive: don't use io_uring for krbd with wb/wt cache

As reported here and locally reproduced:
https://forum.proxmox.com/threads/efi-vms-wont-start-under-7-beta-with-writeback-cache.91629/

This configuration is currently broken. Until we figure out how to fix
it properly, we can just have this (luckily very narrow) config pattern
fall back to aio=threads as it used to.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2021-06-30 17:18:17 +02:00 committed by Thomas Lamprecht
parent defa8e21be
commit 628937f53a

View File

@ -1600,8 +1600,11 @@ sub print_drive_commandline_full {
$cache_direct = 1;
}
# io_uring with cache mode writeback or writethrough on krbd will hang...
my $rbd_no_io_uring = $scfg && $scfg->{type} eq 'rbd' && $scfg->{krbd} && !$cache_direct;
if (!$drive->{aio}) {
if ($io_uring) {
if ($io_uring && !$rbd_no_io_uring) {
# io_uring supports all cache modes
$opts .= ",aio=io_uring";
} else {