Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089AbbHXQ4f (ORCPT ); Mon, 24 Aug 2015 12:56:35 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:59237 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753682AbbHXQ4d (ORCPT ); Mon, 24 Aug 2015 12:56:33 -0400 Date: Tue, 18 Aug 2015 05:45:15 -0700 From: Darren Hart To: Thomas Gleixner Cc: "Michael Kerrisk (man-pages)" , Torvald Riegel , "Carlos O'Donell" , Ingo Molnar , Jakub Jelinek , linux-man , lkml , Davidlohr Bueso , Arnd Bergmann , Steven Rostedt , Peter Zijlstra , 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 Subject: Re: Next round: revised futex(2) man page for review Message-ID: <20150818124515.GA13787@vmdeb7> References: <55B61EF3.7080302@gmail.com> <20150805222140.GA74817@vmdeb7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2086 Lines: 46 On Thu, Aug 20, 2015 at 12:40:46AM +0200, Thomas Gleixner wrote: > On Wed, 5 Aug 2015, Darren Hart wrote: > > On Mon, Jul 27, 2015 at 02:07:15PM +0200, Michael Kerrisk (man-pages) wrote: > > > .\" FIXME XXX ===== Start of adapted Hart/Guniguntala text ===== > > > .\" The following text is drawn from the Hart/Guniguntala paper > > > .\" (listed in SEE ALSO), but I have reworded some pieces > > > .\" significantly. Please check it. > > > > > > The PI futex operations described below differ from the other > > > futex operations in that they impose policy on the use of the > > > value of the futex word: > > > > > > * If the lock is not acquired, the futex word's value shall be > > > 0. > > > > > > * If the lock is acquired, the futex word's value shall be the > > > thread ID (TID; see gettid(2)) of the owning thread. > > > > > > * If the lock is owned and there are threads contending for the > > > lock, then the FUTEX_WAITERS bit shall be set in the futex > > > word's value; in other words, this value is: > > > > > > FUTEX_WAITERS | TID > > > > > > > > > Note that a PI futex word never just has the value FUTEX_WAITERS, > > > which is a permissible state for non-PI futexes. > > > > The second clause is inappropriate. I don't know if that was yours or > > mine, but non-PI futexes do not have a kernel defined value policy, so > > ==FUTEX_WAITERS cannot be a "permissible state" as any value is > > permissible for non-PI futexes, and none have a kernel defined state. > > Depends. If the regular futex is configured as robust, then we have a > kernel defined value policy as well. Indeed, thanks for catching that. -- Darren Hart Intel Open Source Technology Center -- 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/