[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/4] scsi-block: Fix error handling with r/werror=stop
From: |
Kevin Wolf |
Subject: |
[PATCH 0/4] scsi-block: Fix error handling with r/werror=stop |
Date: |
Mon, 29 Jul 2024 11:46:57 +0200 |
Running validation tests in Windows 2019's Failover Cluster Manager
fails in two different ways when run with rerror/werror=stop:
1. It runs into an assertion failure because the sgio-based I/O path
takes shortcuts in its error handling that skip necessary cleanup
2. RESERVATION_CONFLICT is treated as a host error and stops the VM,
which in some cases can't be resumed at all because nothing will make
the error go away on retry. The error should always go to the guest
instead, it's an invalid request from the guest.
This series fixes these problems.
Kevin Wolf (4):
scsi-disk: Use positive return value for status in dma_readv/writev
scsi-block: Don't skip callback for sgio error status/driver_status
scsi-disk: Add warning comments that host_status errors take a
shortcut
scsi-disk: Always report RESERVATION_CONFLICT to guest
hw/scsi/scsi-disk.c | 53 +++++++++++++++++++++++++++------------------
1 file changed, 32 insertions(+), 21 deletions(-)
--
2.45.2
- [PATCH 0/4] scsi-block: Fix error handling with r/werror=stop,
Kevin Wolf <=
[PATCH 3/4] scsi-disk: Add warning comments that host_status errors take a shortcut, Kevin Wolf, 2024/07/29