Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 31 Dec 2001 07:50:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 31 Dec 2001 07:50:36 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:23822 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Mon, 31 Dec 2001 07:50:21 -0500 Subject: Re: [patch] Prefetching file_read_actor() To: akpm@zip.com.au (Andrew Morton) Date: Mon, 31 Dec 2001 13:00:21 +0000 (GMT) Cc: davej@suse.de (Dave Jones), linux-kernel@vger.kernel.org (Linux Kernel), manfred@colorfullife.com (Manfred Spraul) In-Reply-To: <3C2FFB2F.D02095A2@zip.com.au> from "Andrew Morton" at Dec 30, 2001 09:44:15 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > > + > > + if (size > 128) { > > + int i; > > + for(i=0; i > + prefetch (kaddr+offset); > > + prefetch (kaddr+offset+(L1_CACHE_BYTES*2)); > > + } > > + } > > + Thats almost certainly wrong for most processors. It might work on the PIII but I wouldnt trust the right results on others. Fix copy_to_user to have a prefetching version if appropriate - 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/