Re: [RFC PATCH] futex: Introduce __vdso_robust_futex_unlock

From: Mathieu Desnoyers

Date: Wed Mar 11 2026 - 16:11:11 EST


On 2026-03-11 14:54, Mathieu Desnoyers wrote:
[...]
{
+ bool unlock_store_done = false;
u32 uval, nval, mval;
pid_t owner;
int err;

Dead code. Will remove.

[...]
@@ -1071,6 +1165,13 @@ static int handle_futex_death(u32 __user *uaddr, struct task_struct *curr,
return 0;
}
+ /*
+ * Terminated after the unlock store is done. Wake up waiters,
+ * but do not change the lock state.
+ */
+ if (unlock_store_done)
+ return 0;

Sorry, this is leftover dead code, will remove in next version.

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com