[PATCH] nvme-multipath: use vmalloc for ANA log buffer

Chaitanya Kulkarni chaitanyak at nvidia.com
Wed Mar 9 08:09:08 PST 2022


On 3/9/22 05:29, Daniel Wagner wrote:
> From: Hannes Reinecke <hare at suse.de>
> 
> The ANA log buffer can get really large, as it depends on the
> controller configuration. So to avoid an out-of-memory issue
> during scanning use kvmalloc() instead of the kmalloc().
> 
> Signed-off-by: Hannes Reinecke <hare at suse.de>
> Tested-by: Daniel Wagner <dwagner at suse.de>
> Signed-off-by: Daniel Wagner <dwagner at suse.de>
> ---
> 

We need a blktests for this as earlier code was never exercised
to its limits, anyways:-


Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>




More information about the Linux-nvme mailing list