nvme-multipath: use vmalloc for ANA log buffer
authorHannes Reinecke <hare@suse.de>
Wed, 9 Mar 2022 13:29:00 +0000 (14:29 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 14 Mar 2022 07:43:05 +0000 (08:43 +0100)
commit5e6a7d1eb834be23243c48a964ced67ab0b6e9ce
tree073a021aeafe5e1d23cb2ae324d709c067450b5a
parent85d9abcd7331566781b93ff46e4bccd4806ef2b2
nvme-multipath: use vmalloc for ANA log buffer

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@suse.de>
Tested-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c