Skip to contentSkip to conversation

futex: Fix a faulty comment.

PATCH Superseded [email protected] 1 participant 1 message Dec 7, 2021 Futex

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 futex: Fix a faulty comment.

From: Jangwoong Kim <[email protected]>

Clarify that "woken" saves the last index of futex awoken.

---
 kernel/futex/waitwake.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/futex/waitwake.c +3 -3
index 4ce0923f1ce3..45d634dacfcb 100644
@@ -454,9 +454,9 @@ static int futex_wait_multiple_setup(struct futex_vector *vs, int count, int *wo
 		__set_current_state(TASK_RUNNING);
 
 		/*
-		 * Even if something went wrong, if we find out that a futex
-		 * was woken, we don't return error and return this index to
-		 * userspace
+		 * Even if something went wrong, if we find out that any futex
+		 * was woken, we don't return error and return the last index
+		 * of futex awaken to userspace
 		 */
 		*woken = unqueue_multiple(vs, i);
 		if (*woken >= 0)
Signature · 1 line
2.25.1