Re: [PATCH v5 1/3] blk-mq: introduce blk_mq_set_request_complete

Jens Axboe
2021-02-04T15:28:18Z

On 1/31/21 8:49 PM, Chao Leng wrote:
> nvme drivers need to set the state of request to MQ_RQ_COMPLETE when
> directly complete request in queue_rq.
> So add blk_mq_set_request_complete.

This is a bit iffy, but looks ok for the intended use case. We just have
to be careful NOT to add frivolous users of it...

--
Jens Axboe