From: Daniel McNeil <daniel@osdl.org>
To: viro@parcelfarce.linux.theplanet.co.uk
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
Andy <genanr@emsphone.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] retry force umount (was Re: NFS and umount -f)
Date: 23 Jun 2004 17:22:51 -0700 [thread overview]
Message-ID: <1088036571.2319.36.camel@ibm-c.pdx.osdl.net> (raw)
In-Reply-To: <20040623234712.GM12308@parcelfarce.linux.theplanet.co.uk>
On Wed, 2004-06-23 at 16:47, viro@parcelfarce.linux.theplanet.co.uk
wrote:
> On Wed, Jun 23, 2004 at 04:42:55PM -0700, Daniel McNeil wrote:
> > This works for me on 2.6.7 as well. However, I would get EBUSY back
> > if processes were hung doing nfs operations to the downed server.
> > The processes would get unstuck and get EIO, but the umount would
> > still fail. Doing a 2nd umount -f with no processes waiting for
> > the server would succeed. This patch retries force umounts in
> > the kernel an extra time after giving them time to wake up and
> > get out of the kernel. It doesn't seem quite right to fail
> > a bunch of nfs operations and leave the file system mounted.
>
> Is there any reason to do that in the kernel? What, umount(8) can't do the
> same?
One reason to do it in the kernel is for consistency at the syscall
layer -- before the syscall it was mounted and after it is unmounted.
The umount syscall can return after causing nfs operations to fail
for processes waiting for a down server with the file system still
mounted.
You're right though, having umount(8) retry the force umount from
user-space might be good enough. Ideally, force umount should
always succeed and retrying once inside the kernel doesn't guarantee
that.
Daniel
prev parent reply other threads:[~2004-06-24 0:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-08 15:54 NFS and umount -f Andy
2004-06-08 15:59 ` Trond Myklebust
2004-06-09 12:15 ` raven
2004-06-23 23:42 ` [PATCH] retry force umount (was Re: NFS and umount -f) Daniel McNeil
2004-06-23 23:47 ` viro
2004-06-24 0:22 ` Daniel McNeil [this message]
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=1088036571.2319.36.camel@ibm-c.pdx.osdl.net \
--to=daniel@osdl.org \
--cc=genanr@emsphone.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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
all inboxes | Powered by JetHome®