Lines Matching refs:next_rq

747 		if (sector > blk_rq_pos(bfqq->next_rq))
749 else if (sector < blk_rq_pos(bfqq->next_rq))
808 if (!bfqq->next_rq)
813 blk_rq_pos(bfqq->next_rq), &parent, &p);
1054 * bfq_updated_next_req - update the queue after a new next_rq selection.
1068 struct request *next_rq = bfqq->next_rq;
1071 if (!next_rq)
1083 bfq_serv_to_charge(next_rq, bfqq)),
1639 bfq_serv_to_charge(bfqq->next_rq, bfqq));
2208 struct request *next_rq, *prev;
2299 prev = bfqq->next_rq;
2300 next_rq = bfq_choose_req(bfqd, bfqq->next_rq, rq, bfqd->last_position);
2301 bfqq->next_rq = next_rq;
2304 * Adjust priority tree position, if next_rq changes.
2307 if (unlikely(!bfqd->nonrot_with_queueing && prev != bfqq->next_rq))
2324 if (prev != bfqq->next_rq)
2387 if (bfqq->next_rq == rq) {
2388 bfqq->next_rq = bfq_find_next_rq(bfqd, bfqq, rq);
2407 bfqq->next_rq = NULL;
2513 struct request *prev, *next_rq;
2525 prev = bfqq->next_rq;
2526 next_rq = bfq_choose_req(bfqd, bfqq->next_rq, req,
2528 bfqq->next_rq = next_rq;
2530 * If next_rq changes, update both the queue's budget to
2534 if (prev != bfqq->next_rq) {
2586 if (bfqq->next_rq == next)
2587 bfqq->next_rq = rq;
2706 if (bfq_rq_close_to_sector(__bfqq->next_rq, true, sector))
2709 if (blk_rq_pos(__bfqq->next_rq) < sector)
2717 if (bfq_rq_close_to_sector(__bfqq->next_rq, true, sector))
3964 struct request *next_rq;
4111 next_rq = bfqq->next_rq;
4112 if (next_rq)
4114 bfq_serv_to_charge(next_rq, bfqq));
4117 next_rq ? blk_rq_sectors(next_rq) : 0,
4709 bfq_serv_to_charge(bfqq->next_rq, bfqq) <=
4729 blk_rq_sectors(bfqq->next_rq) >=
4754 bfq_serv_to_charge(bfqq->next_rq, bfqq) <=
4804 struct request *next_rq;
4840 next_rq = bfqq->next_rq;
4845 if (next_rq) {
4846 if (bfq_serv_to_charge(next_rq, bfqq) >
4904 bfqq->bic->bfqq[0][act_idx]->next_rq)
4987 icq_to_bic(async_bfqq->next_rq->elv.icq) == bfqq->bic &&
4988 bfq_serv_to_charge(async_bfqq->next_rq, async_bfqq) <=
4993 bfqq->waker_bfqq->next_rq &&
4994 bfq_serv_to_charge(bfqq->waker_bfqq->next_rq,
5001 blocked_bfqq->next_rq &&
5002 bfq_serv_to_charge(blocked_bfqq->next_rq,
5106 struct request *rq = bfqq->next_rq;