[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151016103123.GE4684@osiris>
Date: Fri, 16 Oct 2015 12:31:23 +0200
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: Thomas Gleixner <tglx@...utronix.de>
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)
On Fri, Oct 16, 2015 at 12:21:51PM +0200, Thomas Gleixner wrote:
> 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.
Yes, sorry about that! I was just about to write that this should have
been &ts on x86. Since x86 seems to pass also structures >8 bytes by
value.
However on s390 it is passed by reference. So even it I change ts to &ts,
it will hang as I described.
So you are saying this works on x86 and it must be some s390 specific bug?
--
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