Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Sep 2002 06:57:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Sep 2002 06:57:27 -0400 Received: from mx2.elte.hu ([157.181.151.9]:16516 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Fri, 27 Sep 2002 06:57:26 -0400 Date: Fri, 27 Sep 2002 13:11:47 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Linus Torvalds Cc: Andrew Morton , Rusty Russell , Subject: Re: [patch] 'sticky pages' support in the VM, futex-2.5.38-C5 In-Reply-To: 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 Content-Length: 789 Lines: 21 On Thu, 26 Sep 2002, Linus Torvalds wrote: > and then the "callback" function just updates the page information in > the futex block directly - as if it was looked up anew. yes. And it would also have to rehash the futex queue (which is hashed along (page,offset), because a FUTEX_WAKE has to find the proper queue - but it's still very cheap. this also means that FUTEX_WAIT does not have to make the futex page writable - just making it present and hashing it along the physical page. Ie. more robust and less intrusive futexes. Ingo - 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/