diff options
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r-- | drivers/ide/ide-tape.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 3a3f10f3f8fe..013dc595fab6 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -586,15 +586,7 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive, | |||
586 | debug_log(DBG_SENSE, "sector: %llu, nr_sectors: %u\n" | 586 | debug_log(DBG_SENSE, "sector: %llu, nr_sectors: %u\n" |
587 | (unsigned long long)blk_rq_pos(rq), blk_rq_sectors(rq)); | 587 | (unsigned long long)blk_rq_pos(rq), blk_rq_sectors(rq)); |
588 | 588 | ||
589 | if (!(blk_special_request(rq) || blk_sense_request(rq))) { | 589 | BUG_ON(!(blk_special_request(rq) || blk_sense_request(rq))); |
590 | /* We do not support buffer cache originated requests. */ | ||
591 | printk(KERN_NOTICE "ide-tape: %s: Unsupported request in " | ||
592 | "request queue (%d)\n", drive->name, rq->cmd_type); | ||
593 | if (blk_fs_request(rq) == 0 && rq->errors == 0) | ||
594 | rq->errors = -EIO; | ||
595 | ide_complete_rq(drive, -EIO, ide_rq_bytes(rq)); | ||
596 | return ide_stopped; | ||
597 | } | ||
598 | 590 | ||
599 | /* Retry a failed packet command */ | 591 | /* Retry a failed packet command */ |
600 | if (drive->failed_pc && drive->pc->c[0] == REQUEST_SENSE) { | 592 | if (drive->failed_pc && drive->pc->c[0] == REQUEST_SENSE) { |