From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610AbcF3XYr (ORCPT ); Thu, 30 Jun 2016 19:24:47 -0400 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:33931 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751536AbcF3XYq (ORCPT ); Thu, 30 Jun 2016 19:24:46 -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: Fri, 1 Jul 2016 08:21:21 +0900 From: Byungchul Park To: Peter Zijlstra Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, npiggin@suse.de, walken@google.com, ak@suse.de, tglx@inhelltoy.tec.linutronix.de Subject: Re: [RFC 08/12] lockdep: Apply crossrelease to PG_locked lock Message-ID: <20160630232121.GT2279@X58A-UD3R> References: <1466398527-1122-1-git-send-email-byungchul.park@lge.com> <1466398527-1122-9-git-send-email-byungchul.park@lge.com> <20160630130458.GF30154@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160630130458.GF30154@twins.programming.kicks-ass.net> 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 Thu, Jun 30, 2016 at 03:04:58PM +0200, Peter Zijlstra wrote: > On Mon, Jun 20, 2016 at 01:55:23PM +0900, Byungchul Park wrote: > > @@ -215,6 +219,11 @@ struct page { > > #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS > > int _last_cpupid; > > #endif > > + > > +#ifdef CONFIG_LOCKDEP_PAGELOCK > > + struct lockdep_map map; > > + struct cross_lock xlock; > > +#endif > > } > > So that's 32+64=96 bytes (CONFIG_LOCK_STAT=n) added to struct page, > really!? Yes... I concerned it at first, but I thought it would be ok since CONFIG_LOCKDEP_PAGE is a debug feature. Anyway, I will try to reduce the size of struct cross_lock which is only thing I can do to reduce it, since we cannot avoid using lockdep_map if we want to make lock_page() participate in the lockdep play.