Skip to content

Commit e961cc5

Browse files
Zhen Leiakpm00
authored andcommitted
kmsan: fix a stale comment in kmsan_save_stack_with_flags()
After commit 446ec83 ("mm/page_alloc: use might_alloc()") and commit 84172f4 ("mm/page_alloc: combine __alloc_pages and __alloc_pages_nodemask"), the comment is no longer accurate. Flag '__GFP_DIRECT_RECLAIM' is clear enough on its own, so remove the comment rather than update it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Zhen Lei <[email protected]> Reviewed-by: Alexander Potapenko <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Marco Elver <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 957ebbd commit e961cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/kmsan/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ depot_stack_handle_t kmsan_save_stack_with_flags(gfp_t flags,
7373

7474
nr_entries = stack_trace_save(entries, KMSAN_STACK_DEPTH, 0);
7575

76-
/* Don't sleep (see might_sleep_if() in __alloc_pages_nodemask()). */
76+
/* Don't sleep. */
7777
flags &= ~__GFP_DIRECT_RECLAIM;
7878

7979
handle = __stack_depot_save(entries, nr_entries, flags, true);

0 commit comments

Comments
 (0)