No, we delete them from the list (list_del_init) so we can't find it
again: ie. futex_wake can't be invoked twice on the same thing without
someone putting it back on the queue...
> In general, I think fast userspace synchronization primitives and
> asynchronous notification are different enough to keep them
> logically more separated. Your double use of the hashed wait queues
> and sys_call make the code difficult to grasp and thus open for
> subtle error.
I don't think the complexity is much worse: async is inherently
complex given that there are no real in-kernel primitives to do offer
both sync and async cleanly. Having two incompatible primitives would
be painful, too.
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/