Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322601
b: refs/heads/master
c: 27c4197
h: refs/heads/master
i:
  322599: a296fcc
v: v3
  • Loading branch information
Mike Snitzer authored and James Bottomley committed Aug 22, 2012
1 parent 146d50c commit 236bf44
Show file tree
Hide file tree
Showing 2 changed files with 5 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: bd8d6dd43a77bfd2b8fef5b094b9d6095e169dee
refs/heads/master: 27c419739b67decced4650440829b8d51bef954b
5 changes: 4 additions & 1 deletion trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
}

if (req->cmd_type == REQ_TYPE_BLOCK_PC) { /* SG_IO ioctl from block level */
req->errors = result;
if (result) {
if (sense_valid && req->sense) {
/*
Expand All @@ -792,6 +791,10 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
if (!sense_deferred)
error = __scsi_error_from_host_byte(cmd, result);
}
/*
* __scsi_error_from_host_byte may have reset the host_byte
*/
req->errors = cmd->result;

req->resid_len = scsi_get_resid(cmd);

Expand Down

0 comments on commit 236bf44

Please sign in to comment.