[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.11.1510161218400.3960@nanos>
Date: Fri, 16 Oct 2015 12:21:51 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Heiko Carstens <heiko.carstens@...ibm.com>
cc: Stefan Liebler <stli@...ux.vnet.ibm.com>,
Preeti U Murthy <preeti@...ux.vnet.ibm.com>,
Peter Zijlstra <peterz@...radead.org>,
linux-kernel@...r.kernel.org
Subject: Re: futex timeout not working? (bisected)
Heiko,
On Thu, 15 Oct 2015, Heiko Carstens wrote:
> /* We wait for half a second. */
> ts.tv_nsec += 500000000;
> if (ts.tv_nsec >= 1000000000)
> {
> ++ts.tv_sec;
> ts.tv_nsec -= 1000000000;
> }
>
> ret = syscall (__NR_futex, &futex_word, op, expected, ts, NULL, FUTEX_BITSET_MATCH_ANY);
If you actually hand in a pointer to 'ts' then the program works as
expected even with the commit in question applied.
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists