diff mbox

scsi: vmw-pvscsi: return DID_BUS_BUSY for adapter-initated aborts

Message ID 20180421020447.GA4887@petr-dev3.eng.vmware.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jim Gill April 21, 2018, 2:04 a.m. UTC
The vmw_pvscsi driver returns DID_ABORT for commands aborted internally
by the adapter, leading to the filesystem going read-only. Change the
result to DID_BUS_BUSY, causing the kernel to retry the command.

Signed-off-by: Jim Gill <jgill@vmware.com>
---
 drivers/scsi/vmw_pvscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen May 2, 2018, 3:16 a.m. UTC | #1
Jim,

> The vmw_pvscsi driver returns DID_ABORT for commands aborted internally
> by the adapter, leading to the filesystem going read-only. Change the
> result to DID_BUS_BUSY, causing the kernel to retry the command.

Applied to 4.17/scsi-fixes, thanks!
diff mbox

Patch

diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c
index c374e3b..777e5f1 100644
--- a/drivers/scsi/vmw_pvscsi.c
+++ b/drivers/scsi/vmw_pvscsi.c
@@ -609,7 +609,7 @@  static void pvscsi_complete_request(struct pvscsi_adapter *adapter,
 			break;
 
 		case BTSTAT_ABORTQUEUE:
-			cmd->result = (DID_ABORT << 16);
+			cmd->result = (DID_BUS_BUSY << 16);
 			break;
 
 		case BTSTAT_SCSIPARITY: