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

Commit 67e6b49e authored by Jens Axboe's avatar Jens Axboe Committed by Jens Axboe
Browse files

cfq-iosched: slice offset should take ioprio into account



Use the max_slice-cur_slice as the multipler for the insertion offset.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 498d3aa2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -442,7 +442,8 @@ static unsigned long cfq_slice_offset(struct cfq_data *cfqd,
	/*
	 * just an approximation, should be ok.
	 */
	return ((cfqd->busy_queues - 1) * cfq_prio_slice(cfqd, 1, 0));
	return (cfqd->busy_queues - 1) * (cfq_prio_slice(cfqd, 1, 0) -
		       cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio));
}

/*