From: Bartlomiej Zolnierkiewicz Date: Sat, 26 Jan 2008 19:13:10 +0000 (+0100) Subject: ide-tape: fix handling of non-special requests in ->end_request method X-Git-Tag: v2.6.25-rc1~1227^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3687221f28058c40e2c57a286decd0caeac67382;p=linux-2.6-omap-h63xx.git ide-tape: fix handling of non-special requests in ->end_request method Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 3cbca3f4628..d71a584f076 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -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 */