Lines Matching refs:rq1
489 * Lifted from AS - choose which of rq1 and rq2 that is best served now.
494 struct request *rq1,
504 if (!rq1 || rq1 == rq2)
507 return rq1;
509 if (rq_is_sync(rq1) && !rq_is_sync(rq2))
510 return rq1;
511 else if (rq_is_sync(rq2) && !rq_is_sync(rq1))
513 if ((rq1->cmd_flags & REQ_META) && !(rq2->cmd_flags & REQ_META))
514 return rq1;
515 else if ((rq2->cmd_flags & REQ_META) && !(rq1->cmd_flags & REQ_META))
518 s1 = blk_rq_pos(rq1);
552 case 0: /* common case for CFQ: rq1 and rq2 not wrapped */
554 return rq1;
559 return rq1;
564 return rq1;
576 return rq1;