On 5/23/23 23:13, Christoph Hellwig wrote:
On Tue, May 23, 2023 at 03:30:16PM -0700, Bart Van Assche wrote:
static inline void blk_mq_sched_requeue_request(struct request *rq)
{
- if (rq->rq_flags & RQF_USE_SCHED) {
- struct request_queue *q = rq->q;
- struct elevator_queue *e = q->elevator;
-
- if (e->type->ops.requeue_request)
- e->type->ops.requeue_request(rq);
- }
+ if (rq->rq_flags & RQF_USE_SCHED)
+ rq->rq_flags |= RQF_REQUEUED;
}
I'd drop this helper function if we go down this way. But maybe
we might just want to keep the method.
My understanding is that every .requeue_request() call is followed by a
.insert_requests() call and hence that we don't need the
.requeue_request() method anymore if the RQF_REQUEUED flag would be
introduced?
Thanks,
Bart.