aboutsummaryrefslogtreecommitdiff
path: root/lib/clz_tab.c
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2016-10-07 16:58:45 -0700
committerLinus Torvalds <[email protected]>2016-10-07 18:46:27 -0700
commit7ebffa45551fe7db86a2b32bf586f124ef484e6e (patch)
tree2c58c3c7ef2d09ad69067b57488e3ef232e2914c /lib/clz_tab.c
parent6b53491598a4d9694318e6e2b11d8c9988a483d4 (diff)
mm,oom_reaper: reduce find_lock_task_mm() usage
Patch series "fortify oom killer even more", v2. This patch (of 9): __oom_reap_task() can be simplified a bit if it receives a valid mm from oom_reap_task() which also uses that mm when __oom_reap_task() failed. We can drop one find_lock_task_mm() call and also make the __oom_reap_task() code flow easier to follow. Moreover, this will make later patch in the series easier to review. Pinning mm's mm_count for longer time is not really harmful because this will not pin much memory. This patch doesn't introduce any functional change. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Tetsuo Handa <[email protected]> Signed-off-by: Michal Hocko <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: David Rientjes <[email protected]> Cc: Vladimir Davydov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions