mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm: memcontrol: zap oom_info_lock
mem_cgroup_print_oom_info is always called under oom_lock, so oom_info_lock is redundant. Signed-off-by: Vladimir Davydov <[email protected]> Cc: Johannes Weiner <[email protected]> Acked-by: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8b5926560f
commit
e0775d10f1
1 changed files with 0 additions and 4 deletions
|
|
@ -1150,12 +1150,9 @@ static bool mem_cgroup_wait_acct_move(struct mem_cgroup *memcg)
|
|||
*/
|
||||
void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p)
|
||||
{
|
||||
/* oom_info_lock ensures that parallel ooms do not interleave */
|
||||
static DEFINE_MUTEX(oom_info_lock);
|
||||
struct mem_cgroup *iter;
|
||||
unsigned int i;
|
||||
|
||||
mutex_lock(&oom_info_lock);
|
||||
rcu_read_lock();
|
||||
|
||||
if (p) {
|
||||
|
|
@ -1199,7 +1196,6 @@ void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p)
|
|||
|
||||
pr_cont("\n");
|
||||
}
|
||||
mutex_unlock(&oom_info_lock);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue