From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Arcangeli Subject: Re: mmu_notifiers: turn off lockdep around mm_take_all_locks Date: Wed, 8 Jul 2009 01:30:14 +0200 Message-ID: <20090707233014.GQ11736@random.random> References: <20090707180630.GA8008@amt.cnet> <1246990505.5197.2.camel@laptop> <4A53917C.6080208@redhat.com> <20090707183741.GA8393@amt.cnet> <1246993442.5197.15.camel@laptop> <1246996825.5197.34.camel@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linus Torvalds , Marcelo Tosatti , Avi Kivity , kvm , Ingo Molnar To: Peter Zijlstra Return-path: Received: from mx2.redhat.com ([66.187.237.31]:59380 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757413AbZGGXag (ORCPT ); Tue, 7 Jul 2009 19:30:36 -0400 Content-Disposition: inline In-Reply-To: <1246996825.5197.34.camel@laptop> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jul 07, 2009 at 10:00:25PM +0200, Peter Zijlstra wrote: > It does feel slightly weird to explicitly overflow that preempt count > though. That is actually fixable there without adding more bits to preempt count, just call a global preempt_disable after lockdep_off and call a spinlock version that doesn't preempt_disable (or preempt_enable after every spin_lock..). > But sure, something like the below would disable lockdep for the > critical bits.. really don't like it though, but the alternative is > modifying the rmap locking and I don't like that either :/ Once we add that, I guess we can also remove the spin_lock_nest_lock.