aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/signal.c
diff options
context:
space:
mode:
authorMichal Hocko <[email protected]>2024-09-26 17:11:51 +0000
committerAndrew Morton <[email protected]>2024-10-09 19:47:19 +0000
commit9a8da05d7ad619beb84d0c6904c3fa7022c6fb9b (patch)
treeb80f92181d1fb56236fc273454c2f9dbdc44561b /rust/helpers/signal.c
parentbcachefs: do not use PF_MEMALLOC_NORECLAIM (diff)
downloadkernel-9a8da05d7ad619beb84d0c6904c3fa7022c6fb9b.tar.gz
kernel-9a8da05d7ad619beb84d0c6904c3fa7022c6fb9b.zip
Revert "mm: introduce PF_MEMALLOC_NORECLAIM, PF_MEMALLOC_NOWARN"
This reverts commit eab0af905bfc3e9c05da2ca163d76a1513159aa4. There is no existing user of those flags. PF_MEMALLOC_NOWARN is dangerous because a nested allocation context can use GFP_NOFAIL which could cause unexpected failure. Such a code would be hard to maintain because it could be deeper in the call chain. PF_MEMALLOC_NORECLAIM has been added even when it was pointed out [1] that such a allocation contex is inherently unsafe if the context doesn't fully control all allocations called from this context. While PF_MEMALLOC_NOWARN is not dangerous the way PF_MEMALLOC_NORECLAIM is it doesn't have any user and as Matthew has pointed out we are running out of those flags so better reclaim it without any real users. [1] https://lore.kernel.org/all/ZcM0xtlKbAOFjv5n@tiehlicka/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Michal Hocko <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Cc: Al Viro <[email protected]> Cc: Christian Brauner <[email protected]> Cc: James Morris <[email protected]> Cc: Jan Kara <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Paul Moore <[email protected]> Cc: Serge E. Hallyn <[email protected]> Cc: Yafang Shao <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/signal.c')
0 files changed, 0 insertions, 0 deletions