mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
futex: use fast_gup()
Change the get_user_pages() call with fast_gup() which doesn't require holding the mmap_sem thereby removing the mmap_sem from all fast paths. 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>
This commit is contained in:
parent
61270708ec
commit
734b05b10e
1 changed files with 1 additions and 3 deletions
|
@ -232,9 +232,7 @@ static int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
|
|||
}
|
||||
|
||||
again:
|
||||
down_read(&mm->mmap_sem);
|
||||
err = get_user_pages(current, mm, address, 1, 0, 0, &page, NULL);
|
||||
up_read(&mm->mmap_sem);
|
||||
err = get_user_pages_fast(address, 1, 0, &page);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
|
Loading…
Reference in a new issue