Thread (60 messages) 60 messages, 8 authors, 2024-10-28

Re: [PATCH v1 06/14] futex: Add sys_futex_wait()

flat view

From: Thomas Gleixner <hidden>
Date: 2023-07-31 16:36:29
Also in: linux-arch, linux-mm, lkml

On Fri, Jul 21 2023 at 12:22, Peter Zijlstra wrote:
quoted hunk ↗ jump to hunk
+int futex_wait(u32 __user *uaddr, unsigned int flags, u32 val, ktime_t *abs_time, u32 bitset)
+{
+	struct hrtimer_sleeper timeout, *to;
+	struct restart_block *restart;
+	int ret;
+
+	to = futex_setup_timer(abs_time, &timeout, flags,
+			       current->timer_slack_ns);
+
+	ret = __futex_wait(uaddr, flags, val, to, bitset);
+	if (!to)
+		return ret;
Can you please put an empty new line and a comment between the __futex_wait()
and the if (!to) check? The original code was less obfuscated.

Other than that: Reviewed-by: Thomas Gleixner [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help