diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2015-09-05 01:47:23 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-05 02:54:41 +0300 |
commit | 2c5b7e1be74ff0175dedbbd325abe9f0dbbb09ae (patch) | |
tree | e93f6aa423faeb6fbcd46103694d629b0a7bb82c /mm/vmscan.c | |
parent | 230c92a8797e0e717c6732de0fffdd5726c0f48f (diff) | |
download | linux-2c5b7e1be74ff0175dedbbd325abe9f0dbbb09ae.tar.xz |
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 <aarcange@redhat.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions