Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 10 Aug 2002 20:51:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 10 Aug 2002 20:51:35 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:44814 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sat, 10 Aug 2002 20:51:35 -0400 Date: Sat, 10 Aug 2002 17:56:43 -0700 (PDT) From: Linus Torvalds To: Andrew Morton cc: lkml Subject: Re: [patch 6/12] hold atomic kmaps across generic_file_read In-Reply-To: <3D55B109.CA52DB9C@zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 692 Lines: 20 On Sat, 10 Aug 2002, Andrew Morton wrote: > > If not, I don't think it's worth making this change just for > the highmem read/write thing (calculating `current' at each > spin_lock site...) I just open coded it. Well, this way it will now do the preempt count twice (once in kmap_atomic, once in th eopen-coded one) if preempt is enabled. I'd suggest just making k[un]map_atomic() always do the inc/dec_preempt_count. Other ideas? Linus - 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/