Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932719AbZJHQ0S (ORCPT ); Thu, 8 Oct 2009 12:26:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932692AbZJHQ0R (ORCPT ); Thu, 8 Oct 2009 12:26:17 -0400 Received: from casper.infradead.org ([85.118.1.10]:54892 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932678AbZJHQ0O (ORCPT ); Thu, 8 Oct 2009 12:26:14 -0400 Subject: Re: [RFC][PATCH] kmap_atomic_push From: Peter Zijlstra To: Ingo Molnar Cc: Avi Kivity , Linus Torvalds , Andrew Morton , "hugh.dickins" , David Howells , lkml , linux-arch In-Reply-To: <20091008155344.GA11727@elte.hu> References: <1255016123.17055.17.camel@laptop> <20091008155344.GA11727@elte.hu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 08 Oct 2009 18:29:22 +0200 Message-Id: <1255019362.26976.311.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1395 Lines: 33 On Thu, 2009-10-08 at 17:53 +0200, Ingo Molnar wrote: > * Peter Zijlstra wrote: > > > The below patchlet changes the kmap_atomic interface to a stack based > > one that doesn't require the KM_types anymore. > > > > This significantly simplifies some code (more still than are present > > in this patch -- ie. pte_map_nested can go now) > > > > This obviously requires that push and pop are matched, I fixed a few > > cases that were not properly nested, the (x86) code checks for this > > and will go BUG when trying to pop a vaddr that isn't the top one so > > abusers should be rather visible. > > Looks great IMO! Last i proposed this i think either Andrew or Avi had > second thoughts about the hard-to-calculate worst-case mapping limit - > but i dont think that's a big issue. That would've been me ;-) > Lets not change the API names though - the rule is that map/unmap must > be properly nested. Right, so I did that full rename just so that people wouldn't get confused or something, but if both you and Linus think it should remain: kmap_atomic() and kunmap_atomic(), I can certainly undo that part. -- 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/