mm: oom_kill: switch test-and-clear of known TIF_MEMDIE to clear
authorJohannes Weiner <[email protected]>
Wed, 24 Jun 2015 23:57:10 +0000 (16:57 -0700)
committerLinus Torvalds <[email protected]>
Thu, 25 Jun 2015 00:49:43 +0000 (17:49 -0700)
commit464027785ff633468ecbb683ede14672d514b3d3
tree8b4666cc3d1f2e25af0ba78fa9f328fc65b7406c
parent16e951966f05da5ccd650104176f6ba289f7fa20
mm: oom_kill: switch test-and-clear of known TIF_MEMDIE to clear

exit_oom_victim() already knows that TIF_MEMDIE is set, and nobody else
can clear it concurrently.  Use clear_thread_flag() directly.

Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: David Rientjes <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/oom_kill.c