[PATCH v4 1/5] blk-mq: introduce blk_mq_set_request_complete

Christoph Hellwig hch at lst.de
Wed Jan 27 11:40:20 EST 2021


> +static inline void blk_mq_set_request_complete(struct request *rq)
> +{
> +	WRITE_ONCE(rq->state, MQ_RQ_COMPLETE);
> +}

This function needs a detailed comment explaining the use case.
Otherwise we'll get lots of driver abuses.



More information about the Linux-nvme mailing list