linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Stop Background mounts hang from hanging
@ 2014-03-07 15:02 Steve Dickson
  2014-03-07 15:02 ` [PATCH] NFSv4: Don't retry server trunking discovery on timeouts Steve Dickson
  2014-03-07 15:36 ` [PATCH] Stop Background mounts hang from hanging Trond Myklebust
  0 siblings, 2 replies; 9+ messages in thread
From: Steve Dickson @ 2014-03-07 15:02 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Linux NFS Mailing list

Background mounts hang forever due to the kernel not returning 
the time out error. The proposed fix is twofold, one in the kernel 
and one in the mounting code.

The kernel patch stop the server trunking code from endlessly 
looping in the kernel on -ETIMEDOUT errors. Instead, the code 
will now return the error, allowing the mount to go into 
the background.

Unfortunately, it takes over 5 mins for this timeout to 
happen, due the default retry strategy, which is unacceptable 
for background mounts. 

So the patch I will be proposing for the mount code will be 
to append the "retrans=1,timeo=100" mount options to the parent
mount of the background mount (when they don't exist). This
causes the parent mount to timeout in ~25sec. 

When parent mount times out, those options will be remove (when 
if they were added) before the child mount is done, in background.

Steve Dickson (1):
  NFSv4: Don't retry server trunking discovery on timeouts

 fs/nfs/nfs4state.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


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

end of thread, other threads:[~2014-03-07 20:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 15:02 [PATCH] Stop Background mounts hang from hanging Steve Dickson
2014-03-07 15:02 ` [PATCH] NFSv4: Don't retry server trunking discovery on timeouts Steve Dickson
2014-03-07 15:26   ` Trond Myklebust
2014-03-07 15:36 ` [PATCH] Stop Background mounts hang from hanging Trond Myklebust
2014-03-07 15:47   ` Steve Dickson
2014-03-07 16:10     ` Trond Myklebust
2014-03-07 19:24       ` Steve Dickson
2014-03-07 19:45         ` Trond Myklebust
2014-03-07 20:20           ` Steve Dickson

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).