Lines Matching defs:rq2
489 * Lifted from AS - choose which of rq1 and rq2 that is best served now.
495 struct request *rq2,
504 if (!rq1 || rq1 == rq2)
505 return rq2;
506 if (!rq2)
509 if (rq_is_sync(rq1) && !rq_is_sync(rq2))
511 else if (rq_is_sync(rq2) && !rq_is_sync(rq1))
512 return rq2;
513 if ((rq1->cmd_flags & REQ_META) && !(rq2->cmd_flags & REQ_META))
515 else if ((rq2->cmd_flags & REQ_META) && !(rq1->cmd_flags & REQ_META))
516 return rq2;
519 s2 = blk_rq_pos(rq2);
552 case 0: /* common case for CFQ: rq1 and rq2 not wrapped */
556 return rq2;
561 return rq2;
566 return rq2;
578 return rq2;