diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:36 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:36 -0400 |
commit | 03a2faaea8f44edfe583ddf1240948019becfbe4 (patch) | |
tree | 08cb1f71390aa1972ad4eb9eba7da48ac3a6d9ce /drivers/ide/ide-tape.c | |
parent | 3ee38302ffc63da93eb0313053a990bb3466e275 (diff) |
ide: return request status from ->pc_callback method
Make ->pc_callback method return request status and then move
the request completion from ->pc_callback to ide_pc_intr().
There should be no functional changes caused by this patch.
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r-- | drivers/ide/ide-tape.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index fc61bbef3bb9..a42e49c6cc3f 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -463,7 +463,7 @@ static void ide_tape_kfree_buffer(idetape_tape_t *tape) | |||
463 | 463 | ||
464 | static void ide_tape_handle_dsc(ide_drive_t *); | 464 | static void ide_tape_handle_dsc(ide_drive_t *); |
465 | 465 | ||
466 | static void ide_tape_callback(ide_drive_t *drive, int dsc) | 466 | static int ide_tape_callback(ide_drive_t *drive, int dsc) |
467 | { | 467 | { |
468 | idetape_tape_t *tape = drive->driver_data; | 468 | idetape_tape_t *tape = drive->driver_data; |
469 | struct ide_atapi_pc *pc = drive->pc; | 469 | struct ide_atapi_pc *pc = drive->pc; |
@@ -530,13 +530,7 @@ static void ide_tape_callback(ide_drive_t *drive, int dsc) | |||
530 | 530 | ||
531 | rq->errors = err; | 531 | rq->errors = err; |
532 | 532 | ||
533 | if (uptodate == 0) | 533 | return uptodate; |
534 | drive->failed_pc = NULL; | ||
535 | |||
536 | if (blk_special_request(rq)) | ||
537 | ide_complete_rq(drive, 0); | ||
538 | else | ||
539 | ide_end_request(drive, uptodate, 0); | ||
540 | } | 534 | } |
541 | 535 | ||
542 | /* | 536 | /* |