Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 24 Mar 2001 20:29:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 24 Mar 2001 20:28:56 -0500 Received: from perninha.conectiva.com.br ([200.250.58.156]:42504 "HELO postfix.conectiva.com.br") by vger.kernel.org with SMTP id ; Sat, 24 Mar 2001 20:28:44 -0500 Date: Sat, 24 Mar 2001 22:05:18 -0300 (BRST) From: Rik van Riel To: "Stephen C. Tweedie" Cc: Linus Torvalds , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alan Cox , Ben LaHaise , Christoph Rohland Subject: Re: [PATCH] Fix races in 2.4.2-ac22 SysV shared memory In-Reply-To: <20010325001338.C11686@redhat.com> 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 On Sun, 25 Mar 2001, Stephen C. Tweedie wrote: > Rik, do you think it is really necessary to take the page lock and > release it inside lookup_swap_cache? I may be overlooking something, > but I can't see the benefit of it --- I don't think we need to do this, except to protect us from using a page which isn't up-to-date yet and locked because of disk IO. Reclaim_page() takes the pagecache_lock before trying to free anything, so there's no reason to lock against that. regards, Rik -- Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose... http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com.br/ - 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/