Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147084
b: refs/heads/master
c: 3969251
h: refs/heads/master
v: v3
  • Loading branch information
scameron@beardog.cca.cpqcorp.net authored and Jens Axboe committed Jun 9, 2009
1 parent 0a7def4 commit b032253
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 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: 72f9f1324fc4cd450c92e4600a710231b0445c75
refs/heads/master: 3969251b80a7b143d01576780073fe0cc9ef6253
23 changes: 16 additions & 7 deletions trunk/drivers/block/cciss_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,16 +1604,25 @@ static int wait_for_device_to_become_ready(ctlr_info_t *h,

(void) process_sendcmd_error(h, c);

if (rc == 0 && c->err_info->CommandStatus == CMD_SUCCESS)
break;
if (rc != 0)
goto retry_tur;

if (rc == 0 &&
c->err_info->CommandStatus == CMD_TARGET_STATUS &&
c->err_info->ScsiStatus == SAM_STAT_CHECK_CONDITION &&
(c->err_info->SenseInfo[2] == NO_SENSE ||
c->err_info->SenseInfo[2] == UNIT_ATTENTION))
if (c->err_info->CommandStatus == CMD_SUCCESS)
break;

if (c->err_info->CommandStatus == CMD_TARGET_STATUS &&
c->err_info->ScsiStatus == SAM_STAT_CHECK_CONDITION) {
if (c->err_info->SenseInfo[2] == NO_SENSE)
break;
if (c->err_info->SenseInfo[2] == UNIT_ATTENTION) {
unsigned char asc;
asc = c->err_info->SenseInfo[12];
check_for_unit_attention(h, c);
if (asc == POWER_OR_RESET)
break;
}
}
retry_tur:
printk(KERN_WARNING "cciss%d: Waiting %d secs "
"for device to become ready.\n",
h->ctlr, waittime / HZ);
Expand Down

0 comments on commit b032253

Please sign in to comment.