scsi: storvsc: properly handle SRB_ERROR when sense message is present
authorLong Li <longli@microsoft.com>
Thu, 15 Dec 2016 02:46:02 +0000 (18:46 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 05:21:11 +0000 (00:21 -0500)
commitbba5dc332ec2d3a685cb4dae668c793f6a3713a3
tree57837f898970d9d48fcaf627593b3d6177e45f24
parent3cd6d3d9b1abab8dcdf0800224ce26daac24eea2
scsi: storvsc: properly handle SRB_ERROR when sense message is present

When sense message is present on error, we should pass along to the upper
layer to decide how to deal with the error.
This patch fixes connectivity issues with Fiber Channel devices.

Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c