summaryrefslogtreecommitdiff
path: root/fs/kernfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2018-01-28 09:29:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-16 20:22:59 +0100
commitf1e31607e73d5f4546ff8d1e40e1153230392188 (patch)
tree94a1eaabff124784cc6d521770e146775999d934 /fs/kernfs
parent1c38ad2f26d8511cde75ce5767313e8c3e789d69 (diff)
NFS: Fix a race between mmap() and O_DIRECT
commit e231c6879cfd44e4fffd384bb6dd7d313249a523 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions