Re: [PATCH v2] blk-mq: Properly init requests from blk_mq_alloc_request_hctx()

From: Ming Lei
Date: Wed Oct 26 2022 - 07:43:32 EST


On Wed, Oct 26, 2022 at 6:04 PM John Garry <john.garry@xxxxxxxxxx> wrote:
>
> Function blk_mq_alloc_request_hctx() is missing zeroing/init of rq->bio,
> biotail, __sector, and __data_len members, which blk_mq_alloc_request()
> has, so duplicate what we do in blk_mq_alloc_request().
>
> Fixes: 1f5bd336b9150 ("blk-mq: add blk_mq_alloc_request_hctx")
> Signed-off-by: John Garry <john.garry@xxxxxxxxxx>

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