diff options
| author | 2026-04-28 18:14:18 +0200 | |
|---|---|---|
| committer | 2026-05-05 16:12:07 +0800 | |
| commit | dad0d91cc2c3e6b6fb285ccfe7ddf71525797198 (patch) | |
| tree | c79f99c2bea8980aa044feab8bf3baedb7c3619a /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | rhashtable: drop ht->mutex in rhashtable_free_and_destroy() (diff) | |
mm/slab: Add kvfree_atomic() helper
kvmalloc() now supports non-sleeping GFP flags, including
the vmalloc fallback path. This means it may return vmalloc
memory even for GFP_ATOMIC and GFP_NOWAIT allocations.
Freeing such memory with kvfree() may then end up calling
vfree(), which is not safe for non-sleeping contexts.
Introduce kvfree_atomic() helper for such cases. It mirrors
kvfree(), but uses vfree_atomic() for vmalloced memory.
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Acked-by: Harry Yoo (Oracle) <harry@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
