/* We need to wrap this check in cfq_cfqq_slice_new(), since ->slice_end isn't valid until the first request from the dispatch is activated and the slice time set.  */
static bool cfq_slice_used(struct cfq_queue *cfqq)
/* We need to wrap this check in cfq_cfqq_slice_new(), since ->slice_end isn't valid until the first request from the dispatch is activated and the slice time set.  */
static bool cfq_slice_used(struct cfq_queue *cfqq)
{
	if (cfq_cfqq_slice_new(cfqq))
		return 0;
	if (time_before(jiffies, cfqq->slice_end))
		return 0;
	return 1;
}