Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932605AbbLSAte (ORCPT ); Fri, 18 Dec 2015 19:49:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:34904 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932152AbbLSAtd (ORCPT ); Fri, 18 Dec 2015 19:49:33 -0500 Date: Fri, 18 Dec 2015 16:49:21 -0800 From: Davidlohr Bueso To: Darren Hart Cc: Thomas Gleixner , Peter Zijlstra , Michael Kerrisk , Linux Kernel Mailing List Subject: Re: [PATCH] futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op Message-ID: <20151219004921.GG17386@linux-uzut.site> References: <9f3bdc116d79d23f5ee72ceb9a2a857f5ff8fa29.1450474525.git.dvhart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <9f3bdc116d79d23f5ee72ceb9a2a857f5ff8fa29.1450474525.git.dvhart@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 27 On Fri, 18 Dec 2015, Darren Hart wrote: >While reviewing Michael Kerrisk's recent futex manpage update, I noticed >that we allow the FUTEX_CLOCK_REALTIME flag for FUTEX_WAIT_BITSET but >not for FUTEX_WAIT. > >FUTEX_WAIT is treated as a simple version for FUTEX_WAIT_BITSET >internally (with a bitmask of FUTEX_BITSET_MATCH_ANY). As such, I cannot >come up with a reason for this exclusion for FUTEX_WAIT. > >This change does modify the behavior of the futex syscall, changing a >call with FUTEX_WAIT | FUTEX_CLOCK_REALTIME from returning -ENOSYS, to be >equivalent to FUTEX_WAIT_BITSET | FUTEX_CLOCK_REALTIME with a bitset of >FUTEX_BITSET_MATCH_ANY. > >Cc: Thomas Gleixner >Cc: Peter Zijlstra >Cc: Davidlohr Bueso >Reported-by: Michael Kerrisk >Signed-off-by: Darren Hart Acked-by: Davidlohr Bueso -- 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/