mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-09 09:14:18 +00: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:
parent
e83dd50a36
commit
78a3ada744
@ -1618,8 +1618,9 @@ sub print_drive_commandline_full {
|
|||||||
# io_uring with cache mode writeback or writethrough on krbd will hang...
|
# 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;
|
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...
|
# io_uring with cache mode writeback or writethrough on LVM will hang, without cache only
|
||||||
my $lvm_no_io_uring = $scfg && $scfg->{type} eq 'lvm' && !$cache_direct;
|
# sometimes, just plain disable...
|
||||||
|
my $lvm_no_io_uring = $scfg && $scfg->{type} eq 'lvm';
|
||||||
|
|
||||||
if (!$drive->{aio}) {
|
if (!$drive->{aio}) {
|
||||||
if ($io_uring && !$rbd_no_io_uring && !$lvm_no_io_uring) {
|
if ($io_uring && !$rbd_no_io_uring && !$lvm_no_io_uring) {
|
||||||
|
Loading…
Reference in New Issue
Block a user