We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32d8206 commit f3dae07Copy full SHA for f3dae07
include/asm-generic/futex.h
@@ -8,8 +8,7 @@
8
#ifndef CONFIG_SMP
9
/*
10
* The following implementation only for uniprocessor machines.
11
- * For UP, it's relies on the fact that pagefault_disable() also disables
12
- * preemption to ensure mutual exclusion.
+ * It relies on preempt_disable() ensuring mutual exclusion.
13
*
14
*/
15
@@ -38,6 +37,7 @@ futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
38
37
if (encoded_op & (FUTEX_OP_OPARG_SHIFT << 28))
39
oparg = 1 << oparg;
40
+ preempt_disable();
41
pagefault_disable();
42
43
ret = -EFAULT;
@@ -72,6 +72,7 @@ futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
72
73
out_pagefault_enable:
74
pagefault_enable();
75
+ preempt_enable();
76
77
if (ret == 0) {
78
switch (cmp) {
0 commit comments