Message ID | 20091001.114755.132624639.davem@davemloft.net |
---|---|
State | RFC |
Delegated to: | David Miller |
Headers | show |
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 7f87801..54b9dbc 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c @@ -184,7 +184,11 @@ static ide_startstop_t ide_do_rw_disk(ide_drive_t *drive, struct request *rq, ide_hwif_t *hwif = drive->hwif; BUG_ON(drive->dev_flags & IDE_DFLAG_BLOCKED); - BUG_ON(!blk_fs_request(rq)); + if (!blk_fs_request(rq)) { + pr_alert("IDE: Non-FS req in ide_do_rw_disk(), cmd_type %d\n", + rq->cmd_type); + ide_kill_rq(drive, rq); + } ledtrig_ide_activity();