Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137681
b: refs/heads/master
c: f974b19
h: refs/heads/master
i:
  137679: 5f13a00
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent 7044219 commit 8dd3256
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 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: a9587fd8c48415cc93fef7f4ba7748a5d3477e7b
refs/heads/master: f974b196f58fe042c7b2b4c0ee15d5a6112dbf40
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide-atapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)

if (blk_special_request(rq)) {
rq->errors = 0;
ide_complete_rq(drive, 0);
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
} else {
if (blk_fs_request(rq) == 0 && uptodate <= 0) {
if (rq->errors == 0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ ide_startstop_t ide_error(ide_drive_t *drive, const char *msg, u8 stat)
return ide_stopped;
}
rq->errors = err;
ide_complete_rq(drive, err ? -EIO : 0);
ide_complete_rq(drive, err ? -EIO : 0, blk_rq_bytes(rq));
return ide_stopped;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide-floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive,

if (blk_special_request(rq)) {
rq->errors = 0;
ide_complete_rq(drive, 0);
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
return ide_stopped;
} else
goto out_end;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err)
kfree(cmd);
}

int ide_complete_rq(ide_drive_t *drive, int error)
int ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes)
{
ide_hwif_t *hwif = drive->hwif;
struct request *rq = hwif->rq;
int rc;

rc = blk_end_request(rq, error, blk_rq_bytes(rq));
rc = blk_end_request(rq, error, nr_bytes);
if (rc == 0)
hwif->rq = NULL;

Expand All @@ -164,7 +164,7 @@ void ide_kill_rq(ide_drive_t *drive, struct request *rq)

if ((media == ide_floppy || media == ide_tape) && drv_req) {
rq->errors = 0;
ide_complete_rq(drive, 0);
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
} else {
if (media == ide_tape)
rq->errors = IDE_DRV_ERROR_GENERAL;
Expand Down Expand Up @@ -312,7 +312,7 @@ static ide_startstop_t execute_drive_cmd (ide_drive_t *drive,
printk("%s: DRIVE_CMD (null)\n", drive->name);
#endif
rq->errors = 0;
ide_complete_rq(drive, 0);
ide_complete_rq(drive, 0, blk_rq_bytes(rq));

return ide_stopped;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide-tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive,
"Two DSC requests were queued\n");
drive->failed_pc = NULL;
rq->errors = 0;
ide_complete_rq(drive, 0);
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
return ide_stopped;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat)

ide_complete_cmd(drive, cmd, stat, err);
rq->errors = err;
ide_complete_rq(drive, err ? -EIO : 0);
ide_complete_rq(drive, err ? -EIO : 0, blk_rq_bytes(rq));
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ extern int ide_devset_execute(ide_drive_t *drive,
const struct ide_devset *setting, int arg);

void ide_complete_cmd(ide_drive_t *, struct ide_cmd *, u8, u8);
int ide_complete_rq(ide_drive_t *, int);
int ide_complete_rq(ide_drive_t *, int, unsigned int);

void ide_tf_dump(const char *, struct ide_taskfile *);

Expand Down

0 comments on commit 8dd3256

Please sign in to comment.