Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270995
b: refs/heads/master
c: dfcf777
h: refs/heads/master
i:
  270993: b6b2485
  270991: ddd5427
v: v3
  • Loading branch information
TARUISI Hiroaki authored and James Bottomley committed Aug 27, 2011
1 parent 4df150f commit 96e2f08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 2ada7fc5d4c4ddeb15bb624045fa3b36ddc025e6
refs/heads/master: dfcf7775815504d13a1d273073810058caf84b9d
12 changes: 10 additions & 2 deletions trunk/drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,16 @@ static int scsi_check_sense(struct scsi_cmnd *scmd)
* so that we can deal with it there.
*/
if (scmd->device->expecting_cc_ua) {
scmd->device->expecting_cc_ua = 0;
return NEEDS_RETRY;
/*
* Because some device does not queue unit
* attentions correctly, we carefully check
* additional sense code and qualifier so as
* not to squash media change unit attention.
*/
if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) {
scmd->device->expecting_cc_ua = 0;
return NEEDS_RETRY;
}
}
/*
* if the device is in the process of becoming ready, we
Expand Down

0 comments on commit 96e2f08

Please sign in to comment.