Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbbG2CJj (ORCPT ); Tue, 28 Jul 2015 22:09:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:37713 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752439AbbG2CJh (ORCPT ); Tue, 28 Jul 2015 22:09:37 -0400 Message-ID: <1438135759.2249.94.camel@stgolabs.net> Subject: Re: Next round: revised futex(2) man page for review From: Davidlohr Bueso To: Peter Zijlstra Cc: Thomas Gleixner , "Michael Kerrisk (man-pages)" , Darren Hart , Torvald Riegel , "Carlos O'Donell" , Ingo Molnar , Jakub Jelinek , linux-man , lkml , Arnd Bergmann , Steven Rostedt , Linux API , Roland McGrath , Anton Blanchard , Eric Dumazet , bill o gallmeister , Jan Kiszka , Daniel Wagner , Rich Felker , Andy Lutomirski , bert hubert , Rusty Russell , Heinrich Schuchardt Date: Tue, 28 Jul 2015 19:09:19 -0700 In-Reply-To: <20150728204508.GG19282@twins.programming.kicks-ass.net> References: <55B61EF3.7080302@gmail.com> <20150728204508.GG19282@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 23 On Tue, 2015-07-28 at 22:45 +0200, Peter Zijlstra wrote: > Also, this code seems to use plist, which means it won't do the right > thing for SCHED_DEADLINE either. Ick, I don't look forward to seeing nice futex plists converted into rbtrees. As opposed to, eg. rtmutexes, there are a few caveats: - Dealing with the top_waiter in rtmutexes is always easy, but in futexes we need to deal with keys, so caching the leftmost won't work as nicely. - This will bloat things like futex_wake, where O(logN) is not suited for FIFO iteration. And iterating linked lists is, in essence, all that we really do when calling futex(2). I have to wonder about the extra overhead added by these points. I do understand the dl concern, nonetheless. -- 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/