Re: [PATCH v2 2/5] blk-mq: remove RQF_MQ_INFLIGHT

Ming Lei
2023-09-16T12:43:28Z

On Wed, Sep 13, 2023 at 03:16:13PM +0000, chengming.zhou@linux.dev wrote:
> From: Chengming Zhou <zhouchengming@bytedance.com>
>
> Since the previous patch change to only account active requests when
> we really allocate the driver tag, the RQF_MQ_INFLIGHT can be removed
> and no double account problem.
>
> 1. none elevator: flush request will use the first pending request's
> driver tag, won't double account.
>
> 2. other elevator: flush request will be accounted when allocate driver
> tag when issue, and will be unaccounted when it put the driver tag.
>
> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>

Reviewed-by: Ming Lei <ming.lei@redhat.com>

Thanks,
Ming