Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268059
b: refs/heads/master
c: 2544b79
h: refs/heads/master
i:
  268057: a54f491
  268055: 3381ef5
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 29, 2011
1 parent d338fc7 commit ef26c24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8de73df1b5143c3d567e707e4dab0b20c82ab54
refs/heads/master: 2544b794372b63e46384ac4af91c5630e92cf7f4
10 changes: 9 additions & 1 deletion trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,15 @@ static void storvsc_command_completion(struct hv_storvsc_request *request)
}
}

scmnd->result = vm_srb->scsi_status;
/*
* If there is an error; offline the device since all
* error recovery strategies would have already been
* deployed on the host side.
*/
if (vm_srb->srb_status == 0x4)
scmnd->result = DID_TARGET_FAILURE << 16;
else
scmnd->result = vm_srb->scsi_status;

if (scmnd->result) {
if (scsi_normalize_sense(scmnd->sense_buffer,
Expand Down

0 comments on commit ef26c24

Please sign in to comment.