From 78a3ada744b87a92f825265d5b49d7eae55e7084 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 23 Jul 2021 10:55:16 +0200 Subject: [PATCH] lvm: avoid the use of IO uring there may be a kernel issue or a bug in how QEMU uses io_uring, but we have users that report crashes which f.ebner could see on some workloads, not really deterministic though and it seems that in newer kernel versions (5.12+) the crash becomes a hang While we're closing in on the actual issue here (which could be the same as for RBD) let's disable io_uring for LVM. Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 3c3da593..23283abd 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1618,8 +1618,9 @@ sub print_drive_commandline_full { # 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; - # io_uring with cache mode writeback or writethrough on LVM will hang... - my $lvm_no_io_uring = $scfg && $scfg->{type} eq 'lvm' && !$cache_direct; + # io_uring with cache mode writeback or writethrough on LVM will hang, without cache only + # sometimes, just plain disable... + my $lvm_no_io_uring = $scfg && $scfg->{type} eq 'lvm'; if (!$drive->{aio}) { if ($io_uring && !$rbd_no_io_uring && !$lvm_no_io_uring) {