Commit [c374f1] Maximize Restore History

This patch fixes q->unplug_thresh condition check in

__elv_add_request(). rq.count[READ] + rq.count[WRITE] can increase
more than one if another thread has allocated a request after the
current request is allocated or in_flight could have changed resulting
in larger-than-one change of nrq, thus breaking the threshold

Signed-off-by: Jens Axboe <>
Signed-off-by: Tejun Heo <>

Tejun Heo Tejun Heo 2005-06-16

Jens Axboe Jens Axboe 2005-06-16

changed drivers/block/elevator.c
drivers/block/elevator.c Diff Switch to side-by-side view