From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 6 May 2000 12:48:09 +0100 From: "Stephen C. Tweedie" Subject: Re: Helding the Kernel lock while doing IO??? Message-ID: <20000506124809.C4994@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: ; from quintela@fi.udc.es on Sat, May 06, 2000 at 03:30:47AM +0200 Sender: owner-linux-mm@kvack.org Return-Path: To: "Juan J. Quintela" Cc: linux-mm@kvack.org, linux-kernel@vger.rutgers.edu, Linus Torvalds , Stephen Tweedie List-ID: Hi, On Sat, May 06, 2000 at 03:30:47AM +0200, Juan J. Quintela wrote: > > read_swap_cache is called synchronously, then we can have to wait > until we read the page to liberate the lock kernel. It is intended? > I am losing some detail? Holding the big kernel lock while we sleep is quite legal. The scheduler drops the lock while we sleep and reacquires it when we are rescheduled. The lock_kernel() lock is not at all like other spinlocks. --Stephen -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/