if (cfqq->in_flight) 
if (cfq_cfqq_dispatched(cfqq)) 
static void cfq_resort_rr_list(struct cfq_queue *cfqq, int preempted){	struct cfq_data *cfqd = cfqq->cfqd;	struct list_head *list, *entry;	BUG_ON(!cfqq->on_rr);	list_del(&cfqq->cfq_list);	if (cfq_class_rt(cfqq))		list = &cfqd->cur_rr;	else if (cfq_class_idle(cfqq))		list = &cfqd->idle_rr;	else {		/*		 * if cfqq has requests in flight, don't allow it to be		 * found in cfq_set_active_queue before it has finished them.		 * this is done to increase fairness between a process that		 * has lots of io pending vs one that only generates one		 * sporadically or synchronously		 */		if (cfqq->in_flight)			list = &cfqd->busy_rr;		else			list = &cfqd->rr_list[cfqq->ioprio];	}	/*	 * if queue was preempted, just add to front to be fair. busy_rr	 * isn't sorted.	 */	if (preempted || list == &cfqd->busy_rr) {		list_add(&cfqq->cfq_list, list);		return;	}	/*	 * sort by when queue was last serviced	 */	entry = list;	while ((entry = entry->prev) != list) {		struct cfq_queue *__cfqq = list_entry_cfqq(entry);		if (!__cfqq->service_last)			break;		if (time_before(__cfqq->service_last, cfqq->service_last))			break;	}	list_add(&cfqq->cfq_list, entry);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/3b18152c327707ae6a2eeba4cfb66457143753bc/cfq-iosched.c/clean/drivers/block/cfq-iosched.c