path: root/mm/internal.h
diff options
authorMichal Hocko <>2022-01-14 14:07:11 -0800
committerLinus Torvalds <>2022-01-15 16:30:29 +0200
commit704687deaae768a818d7da0584ee021793a97684 (patch)
tree950ba1a352142d51585eed89e52dd27e15c2abe2 /mm/internal.h
parenta421ef303008b0ceee2cfc625c3246fa7654b0ca (diff)
mm: make slab and vmalloc allocators __GFP_NOLOCKDEP aware
sl?b and vmalloc allocators reduce the given gfp mask for their internal needs. For that they use GFP_RECLAIM_MASK to preserve the reclaim behavior and constrains. __GFP_NOLOCKDEP is not a part of that mask because it doesn't really control the reclaim behavior strictly speaking. On the other hand it tells the underlying page allocator to disable reclaim recursion detection so arguably it should be part of the mask. Having __GFP_NOLOCKDEP in the mask will not alter the behavior in any form so this change is safe pretty much by definition. It also adds a support for this flag to SL?B and vmalloc allocators which will in turn allow its use to kvmalloc as well. A lack of the support has been noticed recently in Link: Signed-off-by: Michal Hocko <> Reported-by: Sebastian Andrzej Siewior <> Acked-by: Dave Chinner <> Acked-by: Vlastimil Babka <> Cc: Christoph Hellwig <> Cc: Dave Chinner <> Cc: Ilya Dryomov <> Cc: Jeff Layton <> Cc: Neil Brown <> Cc: Uladzislau Rezki (Sony) <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/internal.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/internal.h b/mm/internal.h
index bdac62e1eca7..c5834cc28a44 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -21,7 +21,7 @@
/* The GFP flags allowed during early boot */