diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-01-28 09:29:41 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-01-28 22:00:15 -0500 |
commit | e231c6879cfd44e4fffd384bb6dd7d313249a523 (patch) | |
tree | 7894f5ccb7813ba0cd1f1717443255af510b417d /net | |
parent | 128159f2929ef398698c28a4177eca1c1b88aa74 (diff) | |
download | op-kernel-dev-e231c6879cfd44e4fffd384bb6dd7d313249a523.zip op-kernel-dev-e231c6879cfd44e4fffd384bb6dd7d313249a523.tar.gz |
NFS: Fix a race between mmap() and O_DIRECT
When locking the file in order to do O_DIRECT on it, we must unmap
any mmapped ranges on the pagecache so that we can flush out the
dirty data.
Fixes: a5864c999de67 ("NFS: Do not serialise O_DIRECT reads and writes")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org # v4.8+
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions