Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29324
b: refs/heads/master
c: 86a7397
h: refs/heads/master
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Sep 30, 2005
1 parent ddf198e commit c256e38
Show file tree
Hide file tree
Showing 2 changed files with 8 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: f9997be974be40e884e9e8157ded2f2f9aed454c
refs/heads/master: 86a7397cda08a65bc4f306e812c846e2437b5347
14 changes: 7 additions & 7 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3994,13 +3994,7 @@ static void ata_dataout_task(void *_data)
*/
spin_lock_irqsave(&ap->host_set->lock, flags);

if (is_atapi_taskfile(&qc->tf)) {
/* send CDB */
atapi_send_cdb(ap, qc);

if (qc->tf.flags & ATA_TFLAG_POLLING)
queue_work(ata_wq, &ap->pio_task);
} else {
if (qc->tf.protocol == ATA_PROT_PIO) {
/* PIO data out protocol.
* send first data block.
*/
Expand All @@ -4013,6 +4007,12 @@ static void ata_dataout_task(void *_data)
ata_altstatus(ap); /* flush */

/* interrupt handler takes over from here */
} else {
/* send CDB */
atapi_send_cdb(ap, qc);

if (qc->tf.flags & ATA_TFLAG_POLLING)
queue_work(ata_wq, &ap->pio_task);
}

spin_unlock_irqrestore(&ap->host_set->lock, flags);
Expand Down

0 comments on commit c256e38

Please sign in to comment.