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: NJens Axboe <axboe@suse.de> Signed-off-by: NTejun Heo <htejun@gmail.com>
Showing
想要评论请 注册 或 登录