From: Vasily Averin <vvs@virtuozzo.com>
To: Thomas Gleixner <tglx@linutronix.de>,
linux-arch@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH v2] futex: generic arch_futex_atomic_op_inuser() cleanup
Date: Tue, 16 Jul 2019 09:22:03 +0300 [thread overview]
Message-ID: <12bdaca8-99eb-e576-f842-5970ab1d6a92@virtuozzo.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1907151513450.1722@nanos.tec.linutronix.de>
generic smp version of arch_futex_atomic_op_inuser() always returns -ENOSYS
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
include/asm-generic/futex.h | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h
index 8666fe7f35d7..02970b11f71f 100644
--- a/include/asm-generic/futex.h
+++ b/include/asm-generic/futex.h
@@ -118,26 +118,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
static inline int
arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr)
{
- int oldval = 0, ret;
-
- pagefault_disable();
-
- switch (op) {
- case FUTEX_OP_SET:
- case FUTEX_OP_ADD:
- case FUTEX_OP_OR:
- case FUTEX_OP_ANDN:
- case FUTEX_OP_XOR:
- default:
- ret = -ENOSYS;
- }
-
- pagefault_enable();
-
- if (!ret)
- *oval = oldval;
-
- return ret;
+ return -ENOSYS;
}
static inline int
--
2.17.1
next prev parent reply other threads:[~2019-07-16 6:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 10:27 [PATCH] " Vasily Averin
2019-07-15 10:29 ` Vasily Averin
2019-07-15 12:06 ` Arnd Bergmann
2019-07-15 13:15 ` Thomas Gleixner
2019-07-16 6:22 ` Vasily Averin [this message]
2019-07-16 12:46 ` [PATCH v2] futex: " Arnd Bergmann
2019-07-22 9:25 ` [tip:locking/urgent] futex: Cleanup generic SMP variant of arch_futex_atomic_op_inuser() tip-bot for Vasily Averin
2019-07-15 13:13 ` [PATCH] generic arch_futex_atomic_op_inuser() cleanup Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12bdaca8-99eb-e576-f842-5970ab1d6a92@virtuozzo.com \
--to=vvs@virtuozzo.com \
--cc=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®