diff options
author | Corrado Zoccolo <czoccolo@gmail.com> | 2009-12-09 20:56:04 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-12-09 20:56:04 +0100 |
commit | edc71131c4dc6cc73e2a24aa0a7a79cfce738f12 (patch) | |
tree | b568734b3f053be12f0dabcf2ceea1049537cea1 | |
parent | 7667aa0630407bc07dc38dcc79d29cc0a65553c1 (diff) | |
download | linux-stable-edc71131c4dc6cc73e2a24aa0a7a79cfce738f12.tar.gz linux-stable-edc71131c4dc6cc73e2a24aa0a7a79cfce738f12.tar.bz2 linux-stable-edc71131c4dc6cc73e2a24aa0a7a79cfce738f12.zip |
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>
-rw-r--r-- | block/cfq-iosched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 98b15b98b85d..69ecee7f4ad4 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -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; |