Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 15 Mar 2003 16:44:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 15 Mar 2003 16:44:33 -0500 Received: from mailout10.sul.t-online.com ([194.25.134.21]:55192 "EHLO mailout10.sul.t-online.com") by vger.kernel.org with ESMTP id ; Sat, 15 Mar 2003 16:44:32 -0500 To: Andrew Morton Cc: bzzz@tmi.comex.ru, linux-kernel@vger.kernel.org Subject: Re: [PATCH] remove BKL from ext2's readdir From: Andi Kleen Date: Sat, 15 Mar 2003 22:55:11 +0100 In-Reply-To: <20030315023614.3e28e67b.akpm@digeo.com.suse.lists.linux.kernel> (Andrew Morton's message of "15 Mar 2003 11:38:42 +0100") Message-ID: User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i586-suse-linux) References: <20030315023614.3e28e67b.akpm@digeo.com.suse.lists.linux.kernel> 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: 675 Lines: 25 Andrew Morton writes: > foo_readdir() > { > loff_t pos = file->f_pos; > > .... > f_pos, but which modifies pos> > ... > > file->f_pos = pos; > } At least for alpha this will require an rmb_depends() between the read and the write. Probably on x86 an rmb() wouldn't hurt neither. Otherwise there is no guarantee other CPUs see that intended memory modification order -Andi - 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/