From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753359AbdHWGDo (ORCPT ); Wed, 23 Aug 2017 02:03:44 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:48606 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882AbdHWGDn (ORCPT ); Wed, 23 Aug 2017 02:03:43 -0400 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: byungchul.park@lge.com X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Wed, 23 Aug 2017 15:03:32 +0900 From: Byungchul Park To: Peter Zijlstra Cc: Dave Chinner , mingo@kernel.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Arnaldo Carvalho de Melo , Tejun Heo , Boqun Feng Subject: Re: [PATCH v3 1/3] lockdep: Make LOCKDEP_CROSSRELEASE configs all part of PROVE_LOCKING Message-ID: <20170823060332.GC22976@X58A-UD3R> References: <1502960261-16206-1-git-send-email-byungchul.park@lge.com> <20170821154600.asyzqs2zg6w6o4pg@hirez.programming.kicks-ass.net> <20170822054603.GT10621@dastard> <20170822090603.vufl5ncoequ5ag6x@hirez.programming.kicks-ass.net> <20170822092236.GI20323@X58A-UD3R> <20170822093703.vuuxvxaytna5im33@hirez.programming.kicks-ass.net> <20170823021217.GB3108@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170823021217.GB3108@X58A-UD3R> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 23, 2017 at 11:12:17AM +0900, Byungchul Park wrote: > > > We have to detect dependecies if it exists, even in the following case: > > > > > > oooooooiiiiiiiiiiiiiiiiiii......... > > > |<- range for commit ->| > > > > > > where > > > o: acquisition outside of each work, > > > i: acquisition inside of each work, > > > > > > With yours, we can never detect dependecies wrt 'o'. > > > > There really shouldn't be any o's when you call > > There can be any o's. I meant it's very possible for 'o's to exist. And we have to, of course, consider them wrt dependencies. No reason we should ignore them. > > crossrelease_hist_start(XHLOCK_PROC), it should denote the bottom of a Honestly, I prefer another naming like XHLOCK_WORK or XHLOCK_SYSCALL over XHLOCK_PROC, since the functions are for special contexts e.g. works. But I thought XHLOCK_PROC is not bad because XHLOCK_WORK and XHLOCK_SYSCALL does never conflict to each other and they anyway run as normal process contexts. Remind they are for special contexts.