Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94be52dc authored by Mandeep Singh Baines's avatar Mandeep Singh Baines Committed by Ingo Molnar
Browse files

softlockup: convert read_lock in hung_task to rcu_read_lock



Since the tasklist is protected by rcu list operations, it is safe
to convert the read_lock()s to rcu_read_lock().

Suggested-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarMandeep Singh Baines <msb@google.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ce9dbe24
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout)
	if (test_taint(TAINT_DIE) || did_panic)
		return;

	read_lock(&tasklist_lock);
	rcu_read_lock();
	do_each_thread(g, t) {
		if (!--max_count)
			goto unlock;
@@ -171,7 +171,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout)
			check_hung_task(t, now, timeout);
	} while_each_thread(g, t);
 unlock:
	read_unlock(&tasklist_lock);
	rcu_read_unlock();
}

static void update_poll_jiffies(void)