Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edc71131 authored by Corrado Zoccolo's avatar Corrado Zoccolo Committed by Jens Axboe
Browse files

cfq-iosched: commenting non-obvious initialization



Added a comment to explain the initialization of last_delayed_sync.

Signed-off-by: default avatarCorrado Zoccolo <czoccolo@gmail.com>
Acked-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 7667aa06
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;