The patch titled
futex_compat: update to match native version
has been removed from the -mm tree. Its filename was
futex_compat-update-to-match-native-version.patch
This patch was dropped because of rejects against mainline
------------------------------------------------------
Subject: futex_compat: update to match native version
From: Arnd Bergmann <[EMAIL PROTECTED]>
A few changes have gone into the futex code but not into the futex_compat
code, the most significant one being a fix for FUTEX_WAKE_OP in commit
f54f098612d7f86463b5fb4763d03533d634de73.
This brings both versions in sync again.
Acked-by: Ingo Molnar <[EMAIL PROTECTED]>
Cc: Thomas Gleixner <[EMAIL PROTECTED]>
Cc: David Miller <[EMAIL PROTECTED]>
Signed-off-by: Arnd Bergmann <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
kernel/futex_compat.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff -puN kernel/futex_compat.c~futex_compat-update-to-match-native-version
kernel/futex_compat.c
--- a/kernel/futex_compat.c~futex_compat-update-to-match-native-version
+++ a/kernel/futex_compat.c
@@ -62,8 +62,10 @@ void compat_exit_robust_list(struct task
*/
if (fetch_robust_entry(&pending, &head->list_op_pending, &pip))
return;
+
if (pending)
- handle_futex_death((void __user *)pending + futex_offset, curr,
pip);
+ handle_futex_death((void __user *)pending + futex_offset,
+ curr, pip);
while (entry != &head->list) {
/*
@@ -142,7 +144,7 @@ asmlinkage long compat_sys_futex(u32 __u
{
struct timespec ts;
ktime_t t, *tp = NULL;
- int val2 = 0;
+ u32 val2 = 0;
int cmd = op & FUTEX_CMD_MASK;
if (utime && (cmd == FUTEX_WAIT || cmd == FUTEX_LOCK_PI)) {
@@ -156,8 +158,13 @@ asmlinkage long compat_sys_futex(u32 __u
t = ktime_add(ktime_get(), t);
tp = &t;
}
- if (cmd == FUTEX_REQUEUE || cmd == FUTEX_CMP_REQUEUE)
- val2 = (int) (unsigned long) utime;
+ /*
+ * requeue parameter in 'utime' if cmd == FUTEX_REQUEUE.
+ * number of waiters to wake in 'utime' if cmd == FUTEX_WAKE_OP.
+ */
+ if (cmd == FUTEX_REQUEUE || cmd == FUTEX_CMP_REQUEUE ||
+ cmd == FUTEX_WAKE_OP)
+ val2 = (u32) (unsigned long) utime;
return do_futex(uaddr, op, val, tp, uaddr2, val2, val3);
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
futex_compat-update-to-match-native-version.patch
whitespace-fixes-compat-syscalls.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html