summaryrefslogtreecommitdiffstats
path: root/include/linux/futex.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-09-26 19:32:20 +0200
committerIngo Molnar <mingo@elte.hu>2008-09-30 12:35:20 +0200
commit38d47c1b7075bd7ec3881141bb3629da58f88dab (patch)
tree44c6ddc753738e69c908706a6b0cad04a7b59f95 /include/linux/futex.h
parent94aca1dac6f6d21f4b07e4864baf7768cabcc6e7 (diff)
downloadlinux-38d47c1b7075bd7ec3881141bb3629da58f88dab.tar.gz
linux-38d47c1b7075bd7ec3881141bb3629da58f88dab.tar.bz2
linux-38d47c1b7075bd7ec3881141bb3629da58f88dab.zip
futex: rely on get_user_pages() for shared futexes
On the way of getting rid of the mmap_sem requirement for shared futexes, start by relying on get_user_pages(). Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/futex.h')
-rw-r--r--include/linux/futex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/futex.h b/include/linux/futex.h
index 586ab56a3ec3..8f627b9ae2b1 100644
--- a/include/linux/futex.h
+++ b/include/linux/futex.h
@@ -164,6 +164,8 @@ union futex_key {
} both;
};
+#define FUTEX_KEY_INIT (union futex_key) { .both = { .ptr = NULL } }
+
#ifdef CONFIG_FUTEX
extern void exit_robust_list(struct task_struct *curr);
extern void exit_pi_state_list(struct task_struct *curr);