Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137680
b: refs/heads/master
c: a9587fd
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent 5f13a00 commit 7044219
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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: 89f78b3261f7e331e41753ea2459fbb9b60a6f7a
refs/heads/master: a9587fd8c48415cc93fef7f4ba7748a5d3477e7b
10 changes: 6 additions & 4 deletions trunk/drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,17 @@ void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err)
kfree(cmd);
}

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

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

if (unlikely(blk_end_request(rq, error, blk_rq_bytes(rq))))
BUG();
return rc;
}
EXPORT_SYMBOL(ide_complete_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);
void ide_complete_rq(ide_drive_t *, int);
int ide_complete_rq(ide_drive_t *, int);

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

Expand Down

0 comments on commit 7044219

Please sign in to comment.