> and then the "callback" function just updates the page information in
> the futex block directly - as if it was looked up anew.
yes. And it would also have to rehash the futex queue (which is hashed
along (page,offset), because a FUTEX_WAKE has to find the proper queue -
but it's still very cheap.
this also means that FUTEX_WAIT does not have to make the futex page
writable - just making it present and hashing it along the physical page.
Ie. more robust and less intrusive futexes.
Ingo
-
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/