Re: [PATCH v4] block: Fix uninitialized symbol 'bio' in blk_rq_prep_clone

From: Christoph Hellwig
Date: Wed Oct 09 2024 - 03:30:24 EST


The patch itself looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

On Tue, Oct 08, 2024 at 11:22:15PM +0530, SurajSonawane2415 wrote:
> Fix the uninitialized symbol 'bio' in the function blk_rq_prep_clone
> to resolve the following error:
> block/blk-mq.c:3199 blk_rq_prep_clone() error: uninitialized symbol 'bio'.

To make this more readable I'd usually keep and empty line before
the actual error message. But more importantly it would be useful
to explain what tool generated said error message, and maybe also add
a summary of the discussion why this function was in many ways
pretty horrible code.