Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380AbZGVNSH (ORCPT ); Wed, 22 Jul 2009 09:18:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755365AbZGVNSG (ORCPT ); Wed, 22 Jul 2009 09:18:06 -0400 Received: from viefep19-int.chello.at ([62.179.121.39]:20580 "EHLO viefep19-int.chello.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752761AbZGVNSE (ORCPT ); Wed, 22 Jul 2009 09:18:04 -0400 X-SourceIP: 213.93.53.227 Subject: Re: [tip:core/locking 2/3] lockdep:define preallocated "stack" for BFS as per cpu variable From: Peter Zijlstra To: Ming Lei Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, mingo@elte.hu, torvalds@linux-foundation.org In-Reply-To: References: <1248267513-4934-1-git-send-email-tom.leiming@gmail.com> <1248267513-4934-2-git-send-email-tom.leiming@gmail.com> <1248267513-4934-3-git-send-email-tom.leiming@gmail.com> <1248267830.27058.1404.camel@twins> Content-Type: text/plain Date: Wed, 22 Jul 2009 15:19:15 +0200 Message-Id: <1248268755.27058.1426.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 21 On Wed, 2009-07-22 at 21:10 +0800, Ming Lei wrote: > 2009/7/22 Peter Zijlstra : > > On Wed, 2009-07-22 at 20:58 +0800, tom.leiming@gmail.com wrote: > >> From: Ming Lei > > > > This patch can use a changelog. > > > > Why is this needed, isn't all that serialized by the graph_lock anyway? > > Or are there a few paths where this isn't the case and we're now racy? > > It is really serialized by the graph_lock, but we can prevent cpu cache from > being flushing by different cpu access, which seems that can be avoided by > per cpu variables. Right? I doubt it'll make a difference, got any numbers to back that up? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/