linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] Stop Background mounts hang from hanging
Date: Fri, 07 Mar 2014 10:47:49 -0500	[thread overview]
Message-ID: <5319EA25.5060304@RedHat.com> (raw)
In-Reply-To: <D803A861-E660-4D20-BDE1-00D8C45A1228@primarydata.com>



On 03/07/2014 10:36 AM, Trond Myklebust wrote:
> 
> On Mar 7, 2014, at 10:02, Steve Dickson <steved@redhat.com> wrote:
> 
>> 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. 
> 
> We already have a ‘retry=‘ option for mount.nfs. According to the manpage, that should be used to specify the timeout value. Why not reuse that?
Because it didn't work... retrans and timeo had most effect on the initial times set
in  nfs_init_timeout_values()

> 
> Also, it really would be better if that timeout were under control of the mount utility itself. 
Using those options, it is under the control of mount, unless I'm misunderstanding you...
 
> How about if we allow the use of alarm() to interrupt that particular RPC call?
Why just use the mechanisms that already exist? Why invent a new one? Was my reasoning...

steved.
 
> 
> _________________________________
> Trond Myklebust
> Linux NFS client maintainer, PrimaryData
> trond.myklebust@primarydata.com
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2014-03-07 15:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5319EA25.5060304@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@primarydata.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).