From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from neon.transmeta.com (neon-best.transmeta.com [206.184.214.10]) by kvack.org (8.8.7/8.8.7) with ESMTP id MAA04939 for ; Mon, 18 Jan 1999 12:51:15 -0500 Date: Mon, 18 Jan 1999 09:49:44 -0800 (PST) From: Linus Torvalds Subject: Re: [patch] NEW: arca-vm-21, swapout via shrink_mmap using PG_dirty In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: "Eric W. Biederman" , Zlatko Calusic , linux-kernel@vger.rutgers.edu, linux-mm@kvack.org, Alan Cox , "Stephen C. Tweedie" List-ID: On Mon, 18 Jan 1999, Andrea Arcangeli wrote: > > I can't understand this. I think to know _where_ to mark the page dirty > (in the `if (vm_op->swapout)' path) but I don't understand _where_ to > write the page out to disk avoiding the fs deadlock. Writing them in > shrink_mmap() would not fix the deadlock (obviously if shrink_mmap() is > still recalled as now by try_to_free_pages() etc...). You'd write them out only from a separate deamon that only needs to scan the physical page map. That separate deamon might actually be kswapd, but that's just an implementation detail rather than a conceptual issue. Linus -- This is a majordomo managed list. To unsubscribe, send a message with the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org