Skip to content

Commit 77ddd72

Browse files
Christoph Hellwigakpm00
authored andcommitted
mm,page_owner: don't remove __GFP_NOLOCKDEP in add_stack_record_to_list
Otherwise we'll generate false lockdep positives. Link: https://lkml.kernel.org/r/20240429082828.1615986-1-hch@lst.de Fixes: 217b211 ("mm,page_owner: implement the tracking of the stacks count") Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Oscar Salvador <osalvador@suse.de> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Darrick J. Wong <djwong@kernel.org> Cc: Dave Chinner <david@fromorbit.com> Cc: Marco Elver <elver@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 2c7ad9a commit 77ddd72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/page_owner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void add_stack_record_to_list(struct stack_record *stack_record,
170170

171171
/* Filter gfp_mask the same way stackdepot does, for consistency */
172172
gfp_mask &= ~GFP_ZONEMASK;
173-
gfp_mask &= (GFP_ATOMIC | GFP_KERNEL);
173+
gfp_mask &= (GFP_ATOMIC | GFP_KERNEL | __GFP_NOLOCKDEP);
174174
gfp_mask |= __GFP_NOWARN;
175175

176176
set_current_in_page_owner();

0 commit comments

Comments
 (0)