From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753071AbdBJInu (ORCPT ); Fri, 10 Feb 2017 03:43:50 -0500 Received: from terminus.zytor.com ([65.50.211.136]:53618 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752870AbdBJInS (ORCPT ); Fri, 10 Feb 2017 03:43:18 -0500 Date: Fri, 10 Feb 2017 00:34:58 -0800 From: tip-bot for Byungchul Park Message-ID: Cc: torvalds@linux-foundation.org, hpa@zytor.com, tglx@linutronix.de, sasha.levin@oracle.com, peterz@infradead.org, linux-kernel@vger.kernel.org, mingo@kernel.org, byungchul.park@lge.com Reply-To: sasha.levin@oracle.com, peterz@infradead.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, byungchul.park@lge.com, mingo@kernel.org, torvalds@linux-foundation.org, hpa@zytor.com In-Reply-To: <1484275324-28192-1-git-send-email-byungchul.park@lge.com> References: <1484275324-28192-1-git-send-email-byungchul.park@lge.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] lockdep: Fix incorrect condition to print bug msgs for MAX_LOCKDEP_CHAIN_HLOCKS Git-Commit-ID: f9af456a61ecfbef8233c5046a9e347c9b98ba05 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: f9af456a61ecfbef8233c5046a9e347c9b98ba05 Gitweb: http://git.kernel.org/tip/f9af456a61ecfbef8233c5046a9e347c9b98ba05 Author: Byungchul Park AuthorDate: Fri, 13 Jan 2017 11:42:04 +0900 Committer: Ingo Molnar CommitDate: Fri, 10 Feb 2017 09:09:48 +0100 lockdep: Fix incorrect condition to print bug msgs for MAX_LOCKDEP_CHAIN_HLOCKS Bug messages and stack dump for MAX_LOCKDEP_CHAIN_HLOCKS should only be printed once. Signed-off-by: Byungchul Park Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Sasha Levin Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1484275324-28192-1-git-send-email-byungchul.park@lge.com Signed-off-by: Ingo Molnar --- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 7c38f8f..bf60725 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -2203,7 +2203,7 @@ cache_hit: * Important for check_no_collision(). */ if (unlikely(nr_chain_hlocks > MAX_LOCKDEP_CHAIN_HLOCKS)) { - if (debug_locks_off_graph_unlock()) + if (!debug_locks_off_graph_unlock()) return 0; print_lockdep_off("BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!");