Skip to content

Commit

Permalink
ide: ide_requeue_and_plug() reinstate "always plug" behaviour
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Axboe committed Apr 5, 2011
1 parent 6f03793 commit 929e272
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ide/ide-io.c
Expand Up @@ -570,8 +570,7 @@ void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq)
spin_unlock_irqrestore(q->queue_lock, flags);

/* Use 3ms as that was the old plug delay */
if (rq)
blk_delay_queue(q, 3);
blk_delay_queue(q, 3);
}

static int drive_is_ready(ide_drive_t *drive)
Expand Down

0 comments on commit 929e272

Please sign in to comment.