提交 61f0c1dc 编写于 作者: J Jens Axboe

cfq-iosched: use assigned slice sync value, not default

We should use the sysfs modified slice sync value, in case it differs
from the default.
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 963b72fc
...@@ -1348,12 +1348,13 @@ static int cfq_dispatch_requests(struct request_queue *q, int force) ...@@ -1348,12 +1348,13 @@ static int cfq_dispatch_requests(struct request_queue *q, int force)
/* /*
* must wait a bit longer * must wait a bit longer
*/ */
if (last_sync < cfq_slice_sync) { if (last_sync < cfqd->cfq_slice[1]) {
cfq_schedule_dispatch(cfqd, cfq_slice_sync - last_sync); cfq_schedule_dispatch(cfqd,
cfqd->cfq_slice[1] - last_sync);
return 0; return 0;
} }
depth = last_sync / cfq_slice_sync; depth = last_sync / cfqd->cfq_slice[1];
if (depth < max_dispatch) if (depth < max_dispatch)
max_dispatch = depth; max_dispatch = depth;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册