From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 9 Jan 2001 09:12:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 9 Jan 2001 09:12:06 -0500 Received: from zeus.kernel.org ([209.10.41.242]:28622 "EHLO zeus.kernel.org") by vger.kernel.org with ESMTP id ; Tue, 9 Jan 2001 09:11:51 -0500 Date: Tue, 9 Jan 2001 14:09:32 +0000 From: "Stephen C. Tweedie" To: Rik van Riel Cc: Linus Torvalds , "Sergey E. Volkov" , linux-kernel@vger.kernel.org, Christoph Rohland , Stephen Tweedie Subject: Re: VM subsystem bug in 2.4.0 ? Message-ID: <20010109140932.E4284@redhat.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from riel@conectiva.com.br on Mon, Jan 08, 2001 at 04:30:10PM -0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jan 08, 2001 at 04:30:10PM -0200, Rik van Riel wrote: > On Mon, 8 Jan 2001, Linus Torvalds wrote: > > > > The only solution I see is something like a "active_immobile" > > list, and add entries to that list whenever "writepage()" > > returns 1 - instead of just moving them to the active list. > > Just marking them with a special "do not deactivate me" > bit seems to work fine enough. When this special bit is > set, we simply move the page to the back of the active > list instead of deactivating. But again, how do you clear the bit? Locking is a per-vma property, not per-page. I can mmap a file twice and mlock just one of the mappings. If you get a munlock(), how are you to know how many other locked mappings still exist? --Stephen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/