Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139455
b: refs/heads/master
c: 5b6c942
h: refs/heads/master
i:
  139453: e03088a
  139451: 5e89e59
  139447: 58ff787
  139439: 8a90afc
  139423: db1f0bb
  139391: 0254053
v: v3
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Mar 31, 2009
1 parent 133de3d commit c7549e2
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d80c592c38378c88c568b96963f7a98d927d05fa
refs/heads/master: 5b6c942dd1f13835eff8105ec2aa859544a1498d
13 changes: 6 additions & 7 deletions trunk/drivers/ide/ide-atapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,14 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
pc->xferred = pc->req_xfer;
if (drive->pc_update_buffers)
drive->pc_update_buffers(drive, pc);

if (drive->media == ide_floppy)
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
}
debug_log("%s: DMA finished\n", drive->name);
}

/* No more interrupts */
if ((stat & ATA_DRQ) == 0) {
int uptodate;
int uptodate, error;
unsigned int done;

debug_log("Packet command completed, %d bytes transferred\n",
pc->xferred);
Expand Down Expand Up @@ -366,9 +364,9 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)

if (blk_special_request(rq)) {
rq->errors = 0;
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
done = blk_rq_bytes(rq);
error = 0;
} else {
unsigned int done;

if (blk_fs_request(rq) == 0 && uptodate <= 0) {
if (rq->errors == 0)
Expand All @@ -380,9 +378,10 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
else
done = blk_rq_bytes(rq);

ide_complete_rq(drive, uptodate ? 0 : -EIO, done);
error = uptodate ? 0 : -EIO;
}

ide_complete_rq(drive, error, done);
return ide_stopped;
}

Expand Down

0 comments on commit c7549e2

Please sign in to comment.