Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp12491yba; Thu, 25 Apr 2019 17:04:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPVr7gsbPG71DXMT98oIVoNdPzm6e1WYp7BTpiktniyxepgtbrhmNgUzzp+XD+nF06W45r X-Received: by 2002:a62:4351:: with SMTP id q78mr42507716pfa.86.1556237097060; Thu, 25 Apr 2019 17:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556237097; cv=none; d=google.com; s=arc-20160816; b=uarsvIDE/hVWZvQvEFX8nkrNIEvcnkVQseuaIjKFutPVQSkhdArT+jwZoSiBEcZ6Jv eFBzJZuRbaratdq4g1uaqMMEW+2LqX/pyiSBUJMo5qDIZWBrf0dlZT+HcPgY/5MNj4kF 7aZdaUcqqepzTWCt9FnmSRnk/Y9Leq8L2CM95J2q6DuCnHQF8kYpSCy6yL+kd7rK0qaS YXQ7gDOWxfgQVjd0oXVVHqI4awebiJXb0ZXDJligCXvW04mGoDE/d/oveXL3DZLn1HEd CGTrnT22ddZqFDtrWq1CkVr1UyPV/Vf5Kczk5f5tLFipwwXmv/795tA1SZ6msM7Dvl49 +E5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gSGV6pj1xTOJsvQqk01AL/unLk9JzTaCItBvbXk2Ytg=; b=Ao64I/s0TwU0TVo4trxx02Y5Nh7wbMjbS1ONMO7iMSRFWInGg5XvzfrDv9yDn4IZ3q 5HHq7hCzzQ4/6Q9OVx8XOeGC9/PLKjMs6ceKypfVq5thLTG4tpk+n+Szr3C55uQyCRU2 qy896z6COJObXWHSL4zH4rcqi2cBL6C/vWzcOjrhosRiNsdzcEivMxr6P6ngJJb8hYtB kJLh0xrgIJ7x8+7xuy4wwuWER1mxBJ6jAzjE0sZOpnK3HViRwxPF6SYWwsaw7d07USSK Og5moHp+t/mZ7TDVzOF5slXWU/rnfyNZWz7dIeVNJIZ5h8PDhi2SVpcwVSc8okahQCGE HaZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=VK9BPAw2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si24403759pfc.101.2019.04.25.17.04.42; Thu, 25 Apr 2019 17:04:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=VK9BPAw2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbfDYTsm (ORCPT + 99 others); Thu, 25 Apr 2019 15:48:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:55216 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbfDYTsm (ORCPT ); Thu, 25 Apr 2019 15:48:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gSGV6pj1xTOJsvQqk01AL/unLk9JzTaCItBvbXk2Ytg=; b=VK9BPAw2Zil3nZ4/sJgXS/pWJ emi0uLXCg/hPYvDVFdGantn9QxL9TFSjVkC8IbZKgwN06J/B9mDxKnz6dznzKUIwm/LV7qcaQcyML c9V2n995g5gpL0/Vy1iXw5jFJgUUbHwmP+48z9RF3IcPcerPssU8moR0xz5AhM0MwhnNzdgwrNx6u EdjL0ZCBoJGYLlP58oRzaDHh1KhHMVzAlf/Rj8xgl1BQYK0nNEMhOVEcjFC7GyC/UIZdO+UYDeVv/ COBai+WWOrhT1WengCeM1fZKLRxa8gWsxsIMrwSwkNijojd/RUg+jhPQszx9zivAU1oFA1xFpgU6f N2u10LzFw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJkMC-0001VJ-PL; Thu, 25 Apr 2019 19:48:33 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 85E3729C22B12; Thu, 25 Apr 2019 21:48:31 +0200 (CEST) Date: Thu, 25 Apr 2019 21:48:31 +0200 From: Peter Zijlstra To: Yuyang Du Cc: will.deacon@arm.com, mingo@kernel.org, bvanassche@acm.org, ming.lei@redhat.com, frederic@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH 20/28] locking/lockdep: Refactorize check_noncircular and check_redundant Message-ID: <20190425194831.GV12232@hirez.programming.kicks-ass.net> References: <20190424101934.51535-1-duyuyang@gmail.com> <20190424101934.51535-21-duyuyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424101934.51535-21-duyuyang@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 06:19:26PM +0800, Yuyang Du wrote: > These two functions now handle different check results themselves. A new > check_path function is added to check whether there is a path in the > dependency graph. No functional change. This looks good, however I completely forgot we still had the redundant thing. It was added for cross-release (which has since been reverted) which would generate a lot of redundant links (IIRC) but having it makes the reports more convoluted -- basically, if we had an A-B-C relation, then A-C will not be added to the graph because it is already covered. This then means any report will include B, even though a shorter cycle might have been possible. Maybe we should make the whole redundant check depend on LOCKDEP_SMALL for now.