Re: futex timeout not working? (bisected)
From: Thomas Gleixner
Date: Fri Oct 16 2015 - 06:22:39 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/