https://github.com/torvalds/linux
Revision c374f127e4ff17a318b9ae95a5bf65f370c2d0b1 authored by Tejun Heo on 16 June 2005, 10:57:31 UTC, committed by Jens Axboe on 16 June 2005, 10:57:31 UTC
__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>


1 parent 9c56187
History
Tip revision: c374f127e4ff17a318b9ae95a5bf65f370c2d0b1 authored by Tejun Heo on 16 June 2005, 10:57:31 UTC
This patch fixes q->unplug_thresh condition check in
Tip revision: c374f12

README

back to top