From: "bfields@fieldses.org" <bfields@fieldses.org>
To: "Shawn Lu (shawlu)" <shawlu@cisco.com>
Cc: Joshua Watt <jpewhacker@gmail.com>,
"trond.myklebust@primarydata.com"
<trond.myklebust@primarydata.com>,
"anna.schumaker@netapp.com" <anna.schumaker@netapp.com>,
"jlayton@poochiereds.net" <jlayton@poochiereds.net>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: Is "unmount -f" worked as expected?
Date: Thu, 31 May 2018 11:18:19 -0400 [thread overview]
Message-ID: <20180531151819.GC1298@fieldses.org> (raw)
In-Reply-To: <EE6D39C5-09BB-4133-9CF5-674038E1538F@cisco.com>
On Thu, May 31, 2018 at 03:14:44PM +0000, Shawn Lu (shawlu) wrote:
> Thanks Joshua for great help. From context provided by joshua, I am
> believe that the community is full aware of the “-f “ issue, but
> still pending on solution.
>
> Wondering whether community have consensus yet on what should be the
> correct behavior for “ force unmount”? I hope maintainer of NFS can
> give some guardian for direction.
>
> My use case is also on embedded system where NFS server can go offline
> unexpected. What I looks for is something that can aggressive umount
> NFS in timely manner. Data loss is secondly in my situation.
Dumb question: in that case, why not just cut power?
> One case is involved with cross mounted nfs from different host.
Note: in theory I think there are some deadlocks possible if client and
server mount each other. (Each host could be waiting on the other one
to process writes before it can free memory that it needs to make
progress.)
--b.
> Here,
> both server and client will be shutdown at same time on reboot. NFS
> client side will stuck on shutdown for long time if “umount –l” is
> used to umount NFS.
>
> The previous work done by Joshua and Neil Brown will definitely help
> to resolve my use case if patch can be up streamed. Hope magic will
> happen soon .
>
> Just wondering whether a kernel configure (eg.
> CONFIG_NFS_AGRRESSIVE_SHUTDOWN) can be added to enhance “force
> umount “ to act more aggressive. This feature will be off by default
> so the admin use to the “soft “ force mount will get the same behavior
> as before. When the feature is turn on, “umount –f” is Guarantee to
> succeed.
next prev parent reply other threads:[~2018-05-31 15:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 0:38 Is "unmount -f" worked as expected? Shawn Lu (shawlu)
2018-05-30 13:44 ` Joshua Watt
2018-05-31 15:14 ` Shawn Lu (shawlu)
2018-05-31 15:18 ` bfields [this message]
2018-05-31 16:51 ` Shawn Lu (shawlu)
2018-05-31 17:34 ` bfields
2018-05-31 18:04 ` Shawn Lu (shawlu)
2018-05-31 19:28 ` bfields
2018-05-31 20:14 ` Shawn Lu (shawlu)
2018-05-31 18:44 ` Shawn Lu (shawlu)
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=20180531151819.GC1298@fieldses.org \
--to=bfields@fieldses.org \
--cc=anna.schumaker@netapp.com \
--cc=jlayton@poochiereds.net \
--cc=jpewhacker@gmail.com \
--cc=linux-nfs@vger.kernel.org \
--cc=shawlu@cisco.com \
--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 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.