mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
cfq-iosched: commenting non-obvious initialization
Added a comment to explain the initialization of last_delayed_sync. Signed-off-by: Corrado Zoccolo <czoccolo@gmail.com> Acked-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
7667aa0630
commit
edc71131c4
1 changed files with 4 additions and 0 deletions
|
|
@ -3759,6 +3759,10 @@ static void *cfq_init_queue(struct request_queue *q)
|
||||||
cfqd->cfq_latency = 1;
|
cfqd->cfq_latency = 1;
|
||||||
cfqd->cfq_group_isolation = 0;
|
cfqd->cfq_group_isolation = 0;
|
||||||
cfqd->hw_tag = -1;
|
cfqd->hw_tag = -1;
|
||||||
|
/*
|
||||||
|
* we optimistically start assuming sync ops weren't delayed in last
|
||||||
|
* second, in order to have larger depth for async operations.
|
||||||
|
*/
|
||||||
cfqd->last_delayed_sync = jiffies - HZ;
|
cfqd->last_delayed_sync = jiffies - HZ;
|
||||||
INIT_RCU_HEAD(&cfqd->rcu);
|
INIT_RCU_HEAD(&cfqd->rcu);
|
||||||
return cfqd;
|
return cfqd;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue