Lines Matching refs:rq
23 static void blk_end_sync_rq(struct request *rq, int error) in blk_end_sync_rq() argument
25 struct completion *waiting = rq->end_io_data; in blk_end_sync_rq()
27 rq->end_io_data = NULL; in blk_end_sync_rq()
52 struct request *rq, int at_head, in blk_execute_rq_nowait() argument
59 WARN_ON(rq->cmd_type == REQ_TYPE_FS); in blk_execute_rq_nowait()
61 rq->rq_disk = bd_disk; in blk_execute_rq_nowait()
62 rq->end_io = done; in blk_execute_rq_nowait()
69 blk_mq_insert_request(rq, at_head, true, false); in blk_execute_rq_nowait()
77 is_pm_resume = rq->cmd_type == REQ_TYPE_PM_RESUME; in blk_execute_rq_nowait()
82 rq->cmd_flags |= REQ_QUIET; in blk_execute_rq_nowait()
83 rq->errors = -ENXIO; in blk_execute_rq_nowait()
84 __blk_end_request_all(rq, rq->errors); in blk_execute_rq_nowait()
89 __elv_add_request(q, rq, where); in blk_execute_rq_nowait()
110 struct request *rq, int at_head) in blk_execute_rq() argument
117 if (!rq->sense) { in blk_execute_rq()
119 rq->sense = sense; in blk_execute_rq()
120 rq->sense_len = 0; in blk_execute_rq()
123 rq->end_io_data = &wait; in blk_execute_rq()
124 blk_execute_rq_nowait(q, bd_disk, rq, at_head, blk_end_sync_rq); in blk_execute_rq()
133 if (rq->errors) in blk_execute_rq()
136 if (rq->sense == sense) { in blk_execute_rq()
137 rq->sense = NULL; in blk_execute_rq()
138 rq->sense_len = 0; in blk_execute_rq()