Re: [PATCH v3] btrfs: volumes: Increase bioc pointer check

From: David Sterba
Date: Mon Nov 14 2022 - 15:55:42 EST


On Wed, Oct 26, 2022 at 09:36:11AM +0800, Li zeming wrote:
> The __GFP_NOFAIL flag will cause memory to be allocated an infinite
> number of times until the allocation is successful, but it is best to
> use it only for very necessary code, and try not to use it.
>
> The alloc_btrfs_io_context function looks a little closer to normal
> (excuse my analysis), but I think we can remove __GFP_NOFAIL from it and
> add a bioc pointer allocation check that returns NULL if the allocation
> fails.
>
> Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>

I've reworded the subject and changelog and patch is now in misc-next,
thanks.