Skip to content

Commit

Permalink
ide-tape: fix handling of non-special requests in ->end_request method
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent 73d7de0 commit 3687221
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/ide/ide-tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,11 @@ static int idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects)
if (error)
tape->failed_pc = NULL;

if (!blk_special_request(rq)) {
ide_end_request(drive, uptodate, nr_sects);
return 0;
}

spin_lock_irqsave(&tape->spinlock, flags);

/* The request was a pipelined data transfer request */
Expand Down

0 comments on commit 3687221

Please sign in to comment.