1
linux/drivers/md/persistent-data
Mikulas Patocka faada2174c dm persistent data: fix memory allocation failure
kmalloc is unreliable when allocating more than 8 pages of memory. It may
fail when there is plenty of free memory but the memory is fragmented.
Zdenek Kabelac observed such failure in his tests.

This commit changes kmalloc to kvmalloc - kvmalloc will fall back to
vmalloc if the large allocation fails.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Cc: stable@vger.kernel.org
2024-08-13 21:14:21 +02:00
..
dm-array.c
dm-array.h
dm-bitset.c
dm-bitset.h
dm-block-manager.c
dm-block-manager.h
dm-btree-internal.h
dm-btree-remove.c
dm-btree-spine.c
dm-btree.c
dm-btree.h
dm-persistent-data-internal.h
dm-space-map-common.c
dm-space-map-common.h
dm-space-map-disk.c
dm-space-map-disk.h
dm-space-map-metadata.c dm persistent data: fix memory allocation failure 2024-08-13 21:14:21 +02:00
dm-space-map-metadata.h
dm-space-map.h
dm-transaction-manager.c
dm-transaction-manager.h
Kconfig
Makefile