From: Andrey Ryabinin Date: Fri, 26 Oct 2018 22:07:03 +0000 (-0700) Subject: mm/vmalloc.c: improve vfree() kerneldoc X-Git-Tag: v4.20-rc1~92^2~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ca4ea3a7a78a243ee9edf71a2736bc8fb26d70f;p=thirdparty%2Fkernel%2Flinux.git mm/vmalloc.c: improve vfree() kerneldoc vfree() might sleep if called not in interrupt context. Explain that in the comment. Link: http://lkml.kernel.org/r/20180914130512.10394-2-aryabinin@virtuozzo.com Signed-off-by: Andrey Ryabinin Reviewed-by: Andrew Morton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index a728fc4925573..d00d42d6bf79f 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1577,6 +1577,8 @@ void vfree_atomic(const void *addr) * have CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG, but making the calling * conventions for vfree() arch-depenedent would be a really bad idea) * + * May sleep if called *not* from interrupt context. + * * NOTE: assumes that the object at @addr has a size >= sizeof(llist_node) */ void vfree(const void *addr)