Message ID | 20220127220126.zRE0qPjlu%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | [alternative-merged] mm-utilc-make-kvfree-safe-for-calling-while-holding-spinlocks.patch removed from -mm tree | expand |
--- a/mm/util.c~mm-utilc-make-kvfree-safe-for-calling-while-holding-spinlocks +++ a/mm/util.c @@ -603,12 +603,12 @@ EXPORT_SYMBOL(kvmalloc_node); * It is slightly more efficient to use kfree() or vfree() if you are certain * that you know which one to use. * - * Context: Either preemptible task context or not-NMI interrupt. + * Context: Any context except NMI interrupt. */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr)) - vfree(addr); + vfree_atomic(addr); else kfree(addr); }