Skip to content

Commit

Permalink
cfq-iosched: commenting non-obvious initialization
Browse files Browse the repository at this point in the history
Added a comment to explain the initialization of last_delayed_sync.

Signed-off-by: Corrado Zoccolo <[email protected]>
Acked-by: Jeff Moyer <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
czoccolo authored and Jens Axboe committed Dec 9, 2009
1 parent 7667aa0 commit edc7113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3759,6 +3759,10 @@ static void *cfq_init_queue(struct request_queue *q)
cfqd->cfq_latency = 1;
cfqd->cfq_group_isolation = 0;
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;
INIT_RCU_HEAD(&cfqd->rcu);
return cfqd;
Expand Down

0 comments on commit edc7113

Please sign in to comment.