Lines Matching refs:rq1
443 * Lifted from AS - choose which of rq1 and rq2 that is best served now.
448 struct request *rq1,
458 if (!rq1 || rq1 == rq2)
461 return rq1;
463 if (rq_is_sync(rq1) && !rq_is_sync(rq2))
464 return rq1;
465 else if (rq_is_sync(rq2) && !rq_is_sync(rq1))
467 if ((rq1->cmd_flags & REQ_META) && !(rq2->cmd_flags & REQ_META))
468 return rq1;
469 else if ((rq2->cmd_flags & REQ_META) && !(rq1->cmd_flags & REQ_META))
472 s1 = blk_rq_pos(rq1);
506 case 0: /* common case for CFQ: rq1 and rq2 not wrapped */
508 return rq1;
513 return rq1;
518 return rq1;
530 return rq1;