From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746AbaBNOGU (ORCPT ); Fri, 14 Feb 2014 09:06:20 -0500 Received: from mail-qa0-f51.google.com ([209.85.216.51]:38170 "EHLO mail-qa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752334AbaBNOGS (ORCPT ); Fri, 14 Feb 2014 09:06:18 -0500 Date: Fri, 14 Feb 2014 09:06:13 -0500 From: Tejun Heo To: Li Zhong Cc: Peter Zijlstra , Tommi Rantala , Ingo Molnar , LKML , Dave Jones , trinity@vger.kernel.org Subject: Re: [PATCH ] workqueue: add args to workqueue lockdep name Message-ID: <20140214140613.GA29516@htj.dyndns.org> References: <20140210192846.GF27965@twins.programming.kicks-ass.net> <20140210215224.GB25350@mtj.dyndns.org> <20140211110036.GT9987@twins.programming.kicks-ass.net> <20140211152741.GA24490@htj.dyndns.org> <1392266124.4974.35.camel@ThinkPad-T5421.cn.ibm.com> <20140213212645.GG17608@htj.dyndns.org> <20140213213253.GF27965@twins.programming.kicks-ass.net> <20140213221515.GL17608@htj.dyndns.org> <1392346377.4744.8.camel@ThinkPad-T5421.cn.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1392346377.4744.8.camel@ThinkPad-T5421.cn.ibm.com> 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 Fri, Feb 14, 2014 at 10:52:57AM +0800, Li Zhong wrote: > Tommi noticed a 'funny' lock class name: "%s#5" from a lock acquired in > process_one_work(). > > Maybe #fmt plus #args could be used as the lock_name to give some more > information for some fmt string like the above. > > __builtin_constant_p() check is removed (as there seems no good way to > check all the variables in args list). However, by removing the check, > it only adds two additional "s for those constants. > > Some lockdep name examples printed out after the change: > > lockdep name wq->name > > "events_long" events_long > "%s"("khelper") khelper > "xfs-data/%s"mp->m_fsname xfs-data/dm-3 > > Signed-off-by: Li Zhong Applied to wq/for-3.14-fixes. Thanks. -- tejun