diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:43 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:43 -0400 |
commit | 89f78b3261f7e331e41753ea2459fbb9b60a6f7a (patch) | |
tree | f294393d4d4a1db653c5f0ce7b5504ff589e4a3b /drivers/ide/ide-tape.c | |
parent | 6902a5331256e1b9f4cef95a1e3622252113b260 (diff) |
ide: move rq->errors quirk out from ide_end_request()
Move rq->errors quirk out from ide_end_request() to its call sites.
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r-- | drivers/ide/ide-tape.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 3bfcd7290ce0..94f6fb8c147a 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -760,6 +760,8 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive, | |||
760 | /* We do not support buffer cache originated requests. */ | 760 | /* We do not support buffer cache originated requests. */ |
761 | printk(KERN_NOTICE "ide-tape: %s: Unsupported request in " | 761 | printk(KERN_NOTICE "ide-tape: %s: Unsupported request in " |
762 | "request queue (%d)\n", drive->name, rq->cmd_type); | 762 | "request queue (%d)\n", drive->name, rq->cmd_type); |
763 | if (blk_fs_request(rq) == 0 && rq->errors == 0) | ||
764 | rq->errors = -EIO; | ||
763 | ide_end_request(drive, 0, 0); | 765 | ide_end_request(drive, 0, 0); |
764 | return ide_stopped; | 766 | return ide_stopped; |
765 | } | 767 | } |