linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] remove deadlock risk with loop-back mounted NFS filesystems
@ 2014-08-18  6:22 NeilBrown
  2014-08-18  6:22 ` [PATCH 2/2] NFS: avoid deadlocks " NeilBrown
  2014-08-18  6:22 ` [PATCH 1/2] SUNRPC: track when a client connection is routed to the local host NeilBrown
  0 siblings, 2 replies; 11+ messages in thread
From: NeilBrown @ 2014-08-18  6:22 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs

Now that the new wait_on_bit code is in the kernel (in 3.17-rc1) these
last two patches to support deadlock-free loop-back NFS mounts can be
applied (hopefully to go upstream for 3.18-rc1).

A deadlock can happen if nfsd tries to allocate memory, calls
->releasepage() on a page in an NFS filesystem, and nfs_release_page()
blocks waiting for the nfsd to confirm the COMMIT.

With this patch nfs_release_page() will not wait more than 100ms
for COMMIT to a non-remote nfs fileserver.

Thanks,
NeilBrown

---

NeilBrown (2):
      SUNRPC: track when a client connection is routed to the local host.
      NFS: avoid deadlocks with loop-back mounted NFS filesystems.


 fs/nfs/file.c               |    2 +
 fs/nfs/write.c              |   72 ++++++++++++++++++++++++++++++++++++++++---
 include/linux/freezer.h     |   10 ++++++
 include/linux/sunrpc/clnt.h |    1 +
 include/linux/sunrpc/xprt.h |    1 +
 include/uapi/linux/nfs_fs.h |    3 ++
 net/sunrpc/clnt.c           |   25 +++++++++++++++
 net/sunrpc/xprtsock.c       |    9 +++++
 8 files changed, 117 insertions(+), 6 deletions(-)

-- 
Signature


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-21  3:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18  6:22 [PATCH 0/2] remove deadlock risk with loop-back mounted NFS filesystems NeilBrown
2014-08-18  6:22 ` [PATCH 2/2] NFS: avoid deadlocks " NeilBrown
2014-08-21  0:45   ` Trond Myklebust
2014-08-21  1:11     ` NeilBrown
2014-08-21  1:42       ` Trond Myklebust
2014-08-21  2:15         ` NeilBrown
2014-08-21  3:04           ` NeilBrown
2014-08-21  3:48           ` Trond Myklebust
2014-08-18  6:22 ` [PATCH 1/2] SUNRPC: track when a client connection is routed to the local host NeilBrown
2014-08-21  0:33   ` Trond Myklebust
2014-08-21  1:15     ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).