commit | d5b1aa9a145f133ed0e0d68e5dacff046202cb15 | [log] [tgz] |
---|---|---|
author | Andrea Arcangeli <aarcange@redhat.com> | Wed Jan 20 10:23:26 2021 -0500 |
committer | Andrea Arcangeli <aarcange@redhat.com> | Sat Nov 11 22:03:35 2023 -0500 |
tree | 0b8596e6153ba9aa7da5093bb7548f90164495aa | |
parent | 177f9baf529f39ee1b3e26e35c2ebfd96f5abf8d [diff] |
mm: gup: introduce FOLL_MM_SYNC and FAULT_FLAG_MM_SYNC FOLL_MM_SYNC will provide MM coherency to readonly long term pins. FOLL_MM_SYNC obsoletes the need for FOLL_FORCE|FOLL_WRITE. The spec compliance of FOLL_MM_SYNC was possible thanks to Jann Horn pointing out the mmap.2 manpage says the following about MAP_PRIVATE: "It is unspecified whether changes made to the file after the mmap() call are visible in the mapped region.". Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>