Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190740
b: refs/heads/master
c: 77a4229
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed May 5, 2010
1 parent c9afa99 commit 547b290
Show file tree
Hide file tree
Showing 2 changed files with 15 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: c213e1407be6b04b144794399a91472e0ef92aec
refs/heads/master: 77a4229719e511a0d38d9c355317ae1469adeb54
15 changes: 14 additions & 1 deletion trunk/drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,20 @@ static int scsi_check_sense(struct scsi_cmnd *scmd)
if (scmd->device->allow_restart &&
(sshdr.asc == 0x04) && (sshdr.ascq == 0x02))
return FAILED;
return SUCCESS;

if (blk_barrier_rq(scmd->request))
/*
* barrier requests should always retry on UA
* otherwise block will get a spurious error
*/
return NEEDS_RETRY;
else
/*
* for normal (non barrier) commands, pass the
* UA upwards for a determination in the
* completion functions
*/
return SUCCESS;

/* these three are not supported */
case COPY_ABORTED:
Expand Down

0 comments on commit 547b290

Please sign in to comment.