diff options
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-io.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 5aed79ed4586..1eb3f5cce556 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -1606,8 +1606,11 @@ int ide_do_drive_cmd (ide_drive_t *drive, struct request *rq, ide_action_t actio | |||
1606 | spin_lock_irqsave(&ide_lock, flags); | 1606 | spin_lock_irqsave(&ide_lock, flags); |
1607 | if (action == ide_preempt) | 1607 | if (action == ide_preempt) |
1608 | hwgroup->rq = NULL; | 1608 | hwgroup->rq = NULL; |
1609 | __elv_add_request(drive->queue, rq, where, 0); | 1609 | __elv_add_request(drive->queue, rq, where, 1); |
1610 | ide_do_request(hwgroup, IDE_NO_IRQ); | 1610 | __generic_unplug_device(drive->queue); |
1611 | /* the queue is stopped so it won't be plugged+unplugged */ | ||
1612 | if (blk_pm_resume_request(rq)) | ||
1613 | do_ide_request(drive->queue); | ||
1611 | spin_unlock_irqrestore(&ide_lock, flags); | 1614 | spin_unlock_irqrestore(&ide_lock, flags); |
1612 | 1615 | ||
1613 | err = 0; | 1616 | err = 0; |