Skip to content

RFC Fix up the NFS mmap code

Trond Myklebust linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2VFS: Add a mmap_file() callback to struct file_operationsinclude/linux/fs.h mm/filemap.c mm/mmap.c +1 more+44 -60 replies
2/2NFS: Fix a potential deadlock in nfs_file_mmap()fs/nfs/file.c fs/nfs/inode.c+26 -61 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] Fix up the NFS mmap code

How about something like the following. I chose to wrap the call to do_mmap_pgoff() instead of making a special ->pre_mmap(), since that seems more consistent with the way we handle ->read() and ->write().

I also left sys_uselib() and do_execve() to rely on revalidate at open(), since executables and libraries really are not ever expected to change while open.

Cheers
Trond

---

Trond Myklebust (2):
NFS: Fix a potential deadlock in nfs_file_mmap()
VFS: Add a mmap_file() callback to struct file_operations

 fs/nfs/file.c      |   28 ++++++++++++++++++++++------
 fs/nfs/inode.c     |    4 ++++
 include/linux/fs.h |    5 +++++
 mm/filemap.c       |   23 +++++++++++++++++++++++
 mm/mmap.c          |   11 ++++++++---
 mm/nommu.c         |   11 ++++++++---
 6 files changed, 70 insertions(+), 12 deletions(-)
Signature · 1 line
Signature