Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53694
b: refs/heads/master
c: ed773e6
h: refs/heads/master
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed Apr 17, 2007
1 parent 45604da commit d160a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 18a6598f2d3bb7275dadba77df5f06bc996a77d4
refs/heads/master: ed773e66480fdcd06732eb2aa39362599dcd67fa
8 changes: 5 additions & 3 deletions trunk/drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,10 +932,12 @@ static int scsi_eh_try_stu(struct scsi_cmnd *scmd)
static unsigned char stu_command[6] = {START_STOP, 0, 0, 0, 1, 0};

if (scmd->device->allow_restart) {
int rtn;
int i, rtn = NEEDS_RETRY;

for (i = 0; rtn == NEEDS_RETRY && i < 2; i++)
rtn = scsi_send_eh_cmnd(scmd, stu_command, 6,
START_UNIT_TIMEOUT, 0);

rtn = scsi_send_eh_cmnd(scmd, stu_command, 6,
START_UNIT_TIMEOUT, 0);
if (rtn == SUCCESS)
return 0;
}
Expand Down

0 comments on commit d160a00

Please sign in to comment.