Skip to content

Commit

Permalink
scsi: vmw-pvscsi: return DID_BUS_BUSY for adapter-initated aborts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jim Gill authored and Martin K. Petersen committed May 2, 2018
1 parent f5957da commit f4b0242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/vmw_pvscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f4b0242

Please sign in to comment.