Files
linux/drivers/scsi
Jim Gill 7bb880a116 scsi: vmw_pvscsi: Return DID_RESET for status SAM_STAT_COMMAND_TERMINATED
[ Upstream commit e95153b64d ]

Commands that are reset are returned with status
SAM_STAT_COMMAND_TERMINATED. PVSCSI currently returns DID_OK |
SAM_STAT_COMMAND_TERMINATED which fails the command. Instead, set hostbyte
to DID_RESET to allow upper layers to retry.

Tested by copying a large file between two pvscsi disks on same adapter
while performing a bus reset at 1-second intervals. Before fix, commands
sometimes fail with DID_OK. After fix, commands observed to fail with
DID_RESET.

Signed-off-by: Jim Gill <jgill@vmware.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:26:32 +02:00
..
2017-12-25 14:26:25 +01:00
2018-01-02 20:31:05 +01:00
2018-08-24 13:09:15 +02:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2018-08-15 18:12:47 +02:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2017-08-25 17:21:11 -04:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00