From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757346Ab0DAQEN (ORCPT ); Thu, 1 Apr 2010 12:04:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59440 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757329Ab0DAQEB (ORCPT ); Thu, 1 Apr 2010 12:04:01 -0400 Date: Thu, 1 Apr 2010 18:02:09 +0200 From: Andrea Arcangeli To: Avi Kivity Cc: Peter Zijlstra , Thomas Gleixner , Rik van Riel , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Kent Overstreet , Ingo Molnar Subject: Re: [COUNTERPATCH] mm: avoid overflowing preempt_count() in mmu_take_all_locks() Message-ID: <20100401160209.GT5825@random.random> References: <1270117906.1653.139.camel@laptop> <4BB47FC3.1020606@redhat.com> <4BB480CC.2060503@redhat.com> <1270121264.1653.205.camel@laptop> <1270122194.1653.223.camel@laptop> <20100401154249.GQ5825@random.random> <4BB4C0F5.3070204@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BB4C0F5.3070204@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2010 at 06:51:17PM +0300, Avi Kivity wrote: > Can we use srcu now instead? We can always switch to srcu. Switching to srcu is not a noop for all mmu notifier invalidates only after these locks can schedule. At that point, so with srcu + mutex in the rmap locks, all the mmu notifier invalidates can schedule, allowing XPMEM to be synchronous its invalidates, and making it safe.