]> git.baikalelectronics.ru Git - kernel.git/commit
userfaultfd: revert "userfaultfd: waitqueue: add nr wake parameter to __wake_up_locke...
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 22 Sep 2015 21:58:49 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2015 22:09:53 +0000 (15:09 -0700)
commit3b4f43b49afee8a51e628d3eb155f7ea00cc513f
treee658ea2695b55e0b6726df10a47ac7d22837a3c1
parent386ec44975ee6c4ed164aff1cbd900363e5295cc
userfaultfd: revert "userfaultfd: waitqueue: add nr wake parameter to __wake_up_locked_key"

This reverts commit 109ea67d5dbff735251c218208ca3e3164e37a0d and adapts
fs/userfaultfd.c to use the old version of that function.

It didn't look robust to call __wake_up_common with "nr == 1" when we
absolutely require wakeall semantics, but we've full control of what we
insert in the two waitqueue heads of the blocked userfaults.  No
exclusive waitqueue risks to be inserted into those two waitqueue heads
so we can as well stick to "nr == 1" of the old code and we can rely
purely on the fact no waitqueue inserted in one of the two waitqueue
heads we must enforce as wakeall, has wait->flags WQ_FLAG_EXCLUSIVE set.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/userfaultfd.c
include/linux/wait.h
kernel/sched/wait.c
net/sunrpc/sched.c