From: NeilBrown <neilb@suse.de>
To: Steve Dickson <steved@redhat.com>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] mount.nfs: background mount now do directly into background
Date: Mon, 10 Mar 2014 10:43:27 +1100 [thread overview]
Message-ID: <20140310104327.212f72ce@notabene.brown> (raw)
In-Reply-To: <20140310101816.17e7d98a@notabene.brown>
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
On Mon, 10 Mar 2014 10:18:16 +1100 NeilBrown <neilb@suse.de> wrote:
> On Sat, 8 Mar 2014 08:22:44 -0500 Steve Dickson <steved@redhat.com> wrote:
>
> > Modern day kernel will no longer return all timeout
> > errors instead the process spins endlessly in the kernel.
> > This behavior will cause the foreground mount to hang, never
> > allowing the mount to go into background.
> >
> > So this patch eliminates the foreground mount cause
> > background mounts to go directly into background
> >
> > Signed-off-by: Steve Dickson <steved@redhat.com>
>
> Did NFS mounts *ever* time out (when 'soft' isn't given)?
>
> If so, there is probably a regression which maybe should be fixed.
>
> If not, then this has always been a bug since sting-options were introduced
> and the kernel started doing the mountd filehandle lookup...
>
> So I'm probably OK with the patch but I wonder if there is more of a story
> behind this that we should be sure we understand...
>
> Thanks,
> NeilBrown
Sorry, I really should read email in chronological order, shouldn't I :-)
The foregoing discussion seemed to focus on NFSv4. Does NFSv3 behave the
same way? A quick test suggests that it doesn't.
mount -o bg,vers=3 server:/path /mnt
backgrounds as it should after a few seconds.
So I suspect this patch should be version dependent?
However falling-back from v4 (which we leave entirely to the kernel) to v3
could be a bit awkward.
I think that an NFSv4 mount really does need to timeout - whether that
happens in the kernel or through the use of "alarm()" doesn't really bother
me. But if it doesn't timeout, then it is violating the documentation and
ignoring the retry= setting.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2014-03-09 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-08 13:22 [PATCH] mount.nfs: background mount now do directly into background Steve Dickson
2014-03-09 23:18 ` NeilBrown
2014-03-09 23:43 ` NeilBrown [this message]
2014-03-10 15:14 ` Steve Dickson
2014-03-11 21:13 ` Trond Myklebust
2014-03-11 22:56 ` Steve Dickson
2014-03-11 23:04 ` Trond Myklebust
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=20140310104327.212f72ce@notabene.brown \
--to=neilb@suse.de \
--cc=linux-nfs@vger.kernel.org \
--cc=steved@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.