From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 29 Jun 1999 22:08:52 +0200 (CEST) From: Andrea Arcangeli Subject: Re: filecache/swapcache questions [RFC] [RFT] [PATCH] kanoj-mm12-2.3.8 Fix swapoff races In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Chuck Lever Cc: "Stephen C. Tweedie" , Kanoj Sarcar , torvalds@transmeta.com, linux-mm@kvack.org List-ID: On Tue, 29 Jun 1999, Andrea Arcangeli wrote: For the record: the snapshot wasn't SMP safe. > /* >+ * We can release the big kernel lock here since >+ * kswapd will see the page locked. -Andrea >+ */ >+ unlock_kernel(); This was a bit too early (pefectly ok for kswapd but not ok for the swap cache SMP safety). We must first take over the swap cache and run swap_count before be allowed to release the big kernel lock. So this should be moved a bit lower... Andrea -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://humbolt.geo.uu.nl/Linux-MM/