5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-24 02:04:10 +03:00

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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-23 10:55:16 +02:00
parent e83dd50a36
commit 78a3ada744

View File

@ -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) {