Commit 52414d33 authored by Andrey Ryabinin's avatar Andrey Ryabinin Committed by Linus Torvalds

kvfree(): fix misleading comment

vfree() might sleep if called not in interrupt context.  So does kvfree()
too.  Fix misleading kvfree()'s comment about allowed context.

Link: http://lkml.kernel.org/r/20180914130512.10394-1-aryabinin@virtuozzo.com
Fixes: 04b8e946 ("mm/util.c: improve kvfree() kerneldoc")
Signed-off-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent dedf2c73
...@@ -435,7 +435,7 @@ EXPORT_SYMBOL(kvmalloc_node); ...@@ -435,7 +435,7 @@ EXPORT_SYMBOL(kvmalloc_node);
* It is slightly more efficient to use kfree() or vfree() if you are certain * It is slightly more efficient to use kfree() or vfree() if you are certain
* that you know which one to use. * that you know which one to use.
* *
* Context: Any context except NMI. * Context: Either preemptible task context or not-NMI interrupt.
*/ */
void kvfree(const void *addr) void kvfree(const void *addr)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment