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

Commit 46fec7ac authored by qinghuang feng's avatar qinghuang feng Committed by Ingo Molnar
Browse files

lockdep: minor fix for debug_show_all_locks()



When we failed to get tasklist_lock eventually (count equals 0),
we should only print " ignoring it.\n", and not print
" locked it.\n" needlessly.

Signed-off-by: default avatarQinghuang Feng <qhfeng.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 03967c52
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -3417,9 +3417,10 @@ void debug_show_all_locks(void)
		}
		}
		printk(" ignoring it.\n");
		printk(" ignoring it.\n");
		unlock = 0;
		unlock = 0;
	}
	} else {
		if (count != 10)
		if (count != 10)
		printk(" locked it.\n");
			printk(KERN_CONT " locked it.\n");
	}


	do_each_thread(g, p) {
	do_each_thread(g, p) {
		/*
		/*