diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-03-30 06:22:23 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-04-05 17:51:37 -0400 |
commit | 929e27252e8ca69363f81f26af5eaba62cb4c572 (patch) | |
tree | 12dea354d609e42222195f8b6cbe5728893de01b /drivers/ide | |
parent | 6f0379377047b18103b88ce33c03e5b19747ae57 (diff) |
ide: ide_requeue_and_plug() reinstate "always plug" behaviour
We see stalls if we don't always ensure that the queue gets run
again. Even if rq == NULL, we could have other pending requests
in the queue.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 0e406d73b2c8..ca27d3090aeb 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -570,8 +570,7 @@ void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) | |||
570 | spin_unlock_irqrestore(q->queue_lock, flags); | 570 | spin_unlock_irqrestore(q->queue_lock, flags); |
571 | 571 | ||
572 | /* Use 3ms as that was the old plug delay */ | 572 | /* Use 3ms as that was the old plug delay */ |
573 | if (rq) | 573 | blk_delay_queue(q, 3); |
574 | blk_delay_queue(q, 3); | ||
575 | } | 574 | } |
576 | 575 | ||
577 | static int drive_is_ready(ide_drive_t *drive) | 576 | static int drive_is_ready(ide_drive_t *drive) |