Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752248AbdHJJWx (ORCPT ); Thu, 10 Aug 2017 05:22:53 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36486 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168AbdHJJWw (ORCPT ); Thu, 10 Aug 2017 05:22:52 -0400 Date: Thu, 10 Aug 2017 11:22:38 +0200 From: Peter Zijlstra To: Byungchul Park Cc: mingo@kernel.org, tglx@linutronix.de, walken@google.com, boqun.feng@gmail.com, kirill@shutemov.name, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, willy@infradead.org, npiggin@gmail.com, kernel-team@lge.com Subject: Re: [PATCH v8 06/14] lockdep: Detect and handle hist_lock ring buffer overwrite Message-ID: <20170810092238.doii2nwmhalinz5f@hirez.programming.kicks-ass.net> References: <1502089981-21272-1-git-send-email-byungchul.park@lge.com> <1502089981-21272-7-git-send-email-byungchul.park@lge.com> <20170809141605.7r3cldc4na3skcnp@hirez.programming.kicks-ass.net> <20170810013216.GX20323@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170810013216.GX20323@X58A-UD3R> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 646 Lines: 14 On Thu, Aug 10, 2017 at 10:32:16AM +0900, Byungchul Park wrote: > On Wed, Aug 09, 2017 at 04:16:05PM +0200, Peter Zijlstra wrote: > > Hehe, _another_ scheme... > > > > Yes I think this works.. but I had just sort of understood the last one. > > > > How about I do this on top? That I think is a combination of what I > > proposed last and your single invalidate thing. Combined they solve the > > problem with the least amount of extra storage (a single int). > > I'm sorry for saying that.. I'm not sure if this works well. OK, I'll sit on the patch a little while, if you could share your concerns then maybe I can improve the comments ;-)