]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
This patch fixes q->unplug_thresh condition check in
authorTejun Heo <htejun@gmail.com>
Thu, 16 Jun 2005 10:57:31 +0000 (12:57 +0200)
committerJens Axboe <axboe@suse.de>
Thu, 16 Jun 2005 10:57:31 +0000 (12:57 +0200)
commitc374f127e4ff17a318b9ae95a5bf65f370c2d0b1
treed1e42b31f9a66582096e9548fc90cc069d6f39e2
parent9c56187d3c345cc0e7a2f162b8c32543175d7bf7
 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
mechanism.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/block/elevator.c