Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32842
b: refs/heads/master
c: 6bc063d
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jul 25, 2006
1 parent cebf9ad commit 1560831
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 29ed46015dd61f99d203ec7ab307ccf92d2d0cf2
refs/heads/master: 6bc063d414a815937fc81449fa9ffe8d3a4cdf22
12 changes: 4 additions & 8 deletions trunk/drivers/scsi/esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2754,27 +2754,23 @@ static int esp_do_data_finale(struct esp *esp)
*/
static int esp_should_clear_sync(struct scsi_cmnd *sp)
{
u8 cmd1 = sp->cmnd[0];
u8 cmd2 = sp->data_cmnd[0];
u8 cmd = sp->cmnd[0];

/* These cases are for spinning up a disk and
* waiting for that spinup to complete.
*/
if (cmd1 == START_STOP ||
cmd2 == START_STOP)
if (cmd == START_STOP)
return 0;

if (cmd1 == TEST_UNIT_READY ||
cmd2 == TEST_UNIT_READY)
if (cmd == TEST_UNIT_READY)
return 0;

/* One more special case for SCSI tape drives,
* this is what is used to probe the device for
* completion of a rewind or tape load operation.
*/
if (sp->device->type == TYPE_TAPE) {
if (cmd1 == MODE_SENSE ||
cmd2 == MODE_SENSE)
if (cmd == MODE_SENSE)
return 0;
}

Expand Down

0 comments on commit 1560831

Please sign in to comment.