Date: Wed, 21 Feb 2007 09:03:49 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 114786 for review Message-ID: <200702210903.l1L93n2f081393@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114786 Change 114786 by rdivacky@rdivacky_witten on 2007/02/21 09:02:58 In the FUTEX_WAKE_OP the *timeout param is being abused for number of wakes up. Change the code accordingly. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_futex.c#10 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_futex.c#10 (text+ko) ==== @@ -304,12 +304,10 @@ if (op_ret > 0) { op_ret = 0; /* - * Linux uses the address of the timespec parameter - * as the number of retries, so any large number will - * be ok. + * Linux abuses the address of the timespec parameter + * as the number of retries. */ op_ret += futex_wake(f2, (int) (unsigned long) args->timeout, NULL); -// op_ret += futex_wake(f2, 0xffffffff, NULL); ret += op_ret; } futex_put(f2);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702210903.l1L93n2f081393>