diff options
author | Andrea Arcangeli <[email protected]> | 2015-09-04 15:47:23 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-09-04 16:54:41 -0700 |
commit | 2c5b7e1be74ff0175dedbbd325abe9f0dbbb09ae (patch) | |
tree | e93f6aa423faeb6fbcd46103694d629b0a7bb82c /lib/mpi/mpiutil.c | |
parent | 230c92a8797e0e717c6732de0fffdd5726c0f48f (diff) |
userfaultfd: avoid missing wakeups during refile in userfaultfd_read
During the refile in userfaultfd_read both waitqueues could look empty to
the lockless wake_userfault(). Use a seqcount to prevent this false
negative that could leave an userfault blocked.
Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions