diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-09-26 21:32:20 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-30 14:35:20 +0400 |
commit | 38d47c1b7075bd7ec3881141bb3629da58f88dab (patch) | |
tree | 44c6ddc753738e69c908706a6b0cad04a7b59f95 /include/linux/futex.h | |
parent | 94aca1dac6f6d21f4b07e4864baf7768cabcc6e7 (diff) | |
download | linux-38d47c1b7075bd7ec3881141bb3629da58f88dab.tar.xz |
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.h | 2 |
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); |