struct list_head *insert; 
static void as_move_to_dispatch(struct as_data *ad, struct as_rq *arq){	struct request *rq = arq->request;	struct list_head *insert;	const int data_dir = arq->is_sync;	BUG_ON(!ON_RB(&arq->rb_node));	as_antic_stop(ad);	ad->antic_status = ANTIC_OFF;	/*	 * This has to be set in order to be correctly updated by	 * as_find_next_arq	 */	ad->last_sector[data_dir] = rq->sector + rq->nr_sectors;	if (data_dir == REQ_SYNC) {		/* In case we have to anticipate after this */		copy_io_context(&ad->io_context, &arq->io_context);	} else {		if (ad->io_context) {			put_io_context(ad->io_context);			ad->io_context = NULL;		}		if (ad->current_write_count != 0)			ad->current_write_count--;	}	ad->ioc_finished = 0;	ad->next_arq[data_dir] = as_find_next_arq(ad, arq);	/*	 * take it off the sort and fifo list, add to dispatch queue	 */	insert = ad->dispatch->prev;	while (!list_empty(&rq->queuelist)) {		struct request *__rq = list_entry_rq(rq->queuelist.next);		struct as_rq *__arq = RQ_DATA(__rq);		list_move_tail(&__rq->queuelist, ad->dispatch);		if (__arq->io_context && __arq->io_context->aic)			atomic_inc(&__arq->io_context->aic->nr_dispatched);		WARN_ON(__arq->state != AS_RQ_QUEUED);		__arq->state = AS_RQ_DISPATCHED;		ad->nr_dispatched++;	}	as_remove_queued_request(ad->q, rq);	WARN_ON(arq->state != AS_RQ_QUEUED);	list_add(&rq->queuelist, insert);	arq->state = AS_RQ_DISPATCHED;	if (arq->io_context && arq->io_context->aic)		atomic_inc(&arq->io_context->aic->nr_dispatched);	ad->nr_dispatched++;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b4878f245ec8e168cdd1f170f823a750b7dd4af5/as-iosched.c/clean/drivers/block/as-iosched.c