aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2017-09-08 23:13:22 +0000
committerLinus Torvalds <[email protected]>2017-09-09 01:26:47 +0000
commitf19360f015d338a80bec4d56c2e4fc01680ffd8f (patch)
tree039927b25920a01013caee8dc6aecf035e41b8a8 /lib/string.c
parenttools/testing/selftests/kcmp/kcmp_test.c: add KCMP_EPOLL_TFD testing (diff)
downloadkernel-f19360f015d338a80bec4d56c2e4fc01680ffd8f.tar.gz
kernel-f19360f015d338a80bec4d56c2e4fc01680ffd8f.zip
mm/page_alloc.c: apply gfp_allowed_mask before the first allocation attempt
We are by error initializing alloc_flags before gfp_allowed_mask is applied. This could cause problems after pm_restrict_gfp_mask() is called during suspend operation. Apply gfp_allowed_mask before initializing alloc_flags so that the first allocation attempt uses correct flags. Link: http://lkml.kernel.org/r/[email protected] Fixes: 83d4ca8148fd9092 ("mm, page_alloc: move __GFP_HARDWALL modifications out of the fastpath") Signed-off-by: Tetsuo Handa <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Jesper Dangaard Brouer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions