[PATCH] Bumbling follow-on to previous "perfect" futex patch

From: Jamie Lokier
Date: Tue Sep 30 2003 - 03:23:55 EST


Patch: futex_refs2-2.6.0-test6

Please apply this on top of the previous patch, titled "Futex waiters
take an mm or inode reference".

Thanks,
-- Jamie


--- dual-2.6.0-test6/kernel/futex.c.before 2003-09-30 06:43:17.000000000 +0100
+++ dual-2.6.0-test6/kernel/futex.c 2003-09-30 09:12:13.457796502 +0100
@@ -444,6 +444,8 @@
if (unlikely(list_empty(&q.list))) {
/* We were woken already. */
spin_unlock(&bh->lock);
+ /* Equivalent to calling unqueue_me() here, but faster. */
+ drop_key_refs(&q.key);
return 0;
}

-
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/