summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJim Gill <jgill@vmware.com>2018-04-20 19:04:47 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-01 23:15:40 -0400
commitf4b024271ae3e9786e5d6f1c05b01b57a74e1d6d (patch)
tree34300dbaeb12137c49721aecdebceb467a764aca /drivers/scsi
parentf5957dade4f373b04fa1f5315a489f18cc2c4cb4 (diff)
downloadlinux-stable-f4b024271ae3e9786e5d6f1c05b01b57a74e1d6d.tar.gz
linux-stable-f4b024271ae3e9786e5d6f1c05b01b57a74e1d6d.tar.bz2
linux-stable-f4b024271ae3e9786e5d6f1c05b01b57a74e1d6d.zip
scsi: vmw-pvscsi: return DID_BUS_BUSY for adapter-initated aborts
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> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/vmw_pvscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c
index c374e3b5c678..777e5f1e52d1 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: