diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-03-03 18:19:10 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-03-03 18:19:10 +0000 |
commit | a583811c0a195d7c450269b4679aa8c529cb29e5 (patch) | |
tree | 5b7c558ec344165b358a02c5981e68fab6b09231 | |
parent | 758a56db9597c4366aee6b6a2d4aeba2ef5f1cef (diff) | |
download | FreeBSD-src-a583811c0a195d7c450269b4679aa8c529cb29e5.zip FreeBSD-src-a583811c0a195d7c450269b4679aa8c529cb29e5.tar.gz |
Switch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
if page mapped MAP_ANON linux uses private algorithm too.
Disscussed with: jhb
MFC after: 3 Days
-rw-r--r-- | sys/compat/linux/linux_futex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 647071d..e5f4c17 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -161,7 +161,7 @@ futex_get0(uint32_t *uaddr, struct futex **newf, uint32_t flags) *newf = tmpf = NULL; error = umtx_key_get(uaddr, TYPE_FUTEX, (flags & FUTEX_SHARED) ? - PROCESS_SHARE : THREAD_SHARE, &key); + AUTO_SHARE : THREAD_SHARE, &key); if (error) return (error); retry: |