mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fields James <bfields@fieldses.org>
To: Namjae Jeon <linkinjeon@gmail.com>
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>,
	Morton Andrew <akpm@linux-foundation.org>,
	Harrosh Boaz <bharrosh@panasas.com>,
	"<linux-nfs@vger.kernel.org>" <linux-nfs@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Namjae Jeon <namjae.jeon@samsung.com>,
	Vivek Trivedi <t.vivek@samsung.com>,
	Amit Sahrawat <a.sahrawat@samsung.com>
Subject: Re: [RFC PATCH] nfs: Add NFS3PROC_UMOUNT procedure.
Date: Tue, 26 Jun 2012 07:10:24 -0400	[thread overview]
Message-ID: <20120626111024.GB14279@fieldses.org> (raw)
In-Reply-To: <CAKYAXd-h5FPZUDwvJdbXXeQtXjUqQE5s9e1CvuOdpQWgqzG8kw@mail.gmail.com>

On Tue, Jun 26, 2012 at 02:51:52PM +0900, Namjae Jeon wrote:
> 2012/6/25, Fields James <bfields@fieldses.org>:
> > On Sun, Jun 24, 2012 at 02:12:49PM +0900, Namjae Jeon wrote:
> >> 2012/6/24, Fields James <bfields@fieldses.org>:
> >> > On Sat, Jun 23, 2012 at 11:57:10AM -0400, Fields James wrote:
> >> >> On Sat, Jun 23, 2012 at 03:52:20PM +0000, Myklebust, Trond wrote:
> >> >> > The other objection is that NFSv3 already has a way to do this via
> >> >> > the
> >> >> > MOUNT protocol. We already call MOUNTPROC3_UMNT/MOUNTPROC_UMNT on
> >> >> > unmount of a filesystem.
> >> >> >
> >> >> > The problem with this approach is that if the NFS client crashes
> >> >> > before
> >> >> > it can call this function, then the server never gets notified. That
> >> >> > is
> >> >> > a problem that your patch has too...
> >> >>
> >> >> Yes.  Could you instead work on describing *exactly* what the original
> >> >> problem was that prompted this?
> >> >
> >> > ("You" here meaning Namjae Jeon, of course).
> >> >
> >> > And note here we've all read the changelog, that's not what I'm asking
> >> > for.
> >> >
> >> > I want to know the details of *your* specific case.  "I have X clients
> >> > that I use for Y, periodically I want to unmount the exported
> >> > filesystem
> >> > to do Z, I tried doing W but it didn't work...".
> >> As you remember, We discussed this
> >> issue(http://www.spinics.net/lists/linux-nfs/msg29997.html) with you
> >> before. you guided me to use exportfs -f call on nfs server.
> >> It is hard to use this method on our system
> >
> > Why is it hard?
> Two target are connected by only nfs.. we can't manually hand exportfs -f..

So how can you call umount?

--b.

> And I should make each new App on client / server to call exportfs -f.
> >
> > Could you hack umount to do the equivalent of "exportfs -f" before
> > calling the umount?
> Good Idea! I will check your suggestion.
> 
> >
> >> and nomally the user is
> >> thinking it is problem device busy happen after umounting.
> >>
> >> The details of specific case.
> >> 1. There are two target or two PC. and Client want to access files of
> >> usb device on server.
> >> 2. the client try to mount usb mount point using nfs on sever after
> >> plugging usb device.
> >> 3. we try to umount mount point directory on client.
> >> 4. and when we try to umount usb device mount directory server, device
> >> busy message occured like this (umount: can't umount /mnt: Device or
> >> resource busy)
> >
> > Right, so I don't think you want protocol modifications.  They take a
> > few years to get hammered out and then make it into implementations, and
> > they won't help a great deal with your problem anyway.  (Because of
> > problems like the possibility of lost "unmount" calls that Trond
> > mentions.)
> >
> > Either modify umount itself to flush the export cache before attempting
> > the unmount, or if that doesn't work perhaps you could patch the kernel
> > to notify nfsd on unmount and let it attemt to clear its caches before
> > deciding whether the filesystem is busy.
> After checking your suggestion I will share with you.
> Thanks a lot. James.
> >
> > --b.
> >

  reply	other threads:[~2012-06-26 11:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-23 10:46 Namjae Jeon
2012-06-23 15:07 ` Myklebust, Trond
2012-06-23 15:52   ` Myklebust, Trond
2012-06-23 15:57     ` Fields James
2012-06-23 16:09       ` Fields James
2012-06-24  5:12         ` Namjae Jeon
2012-06-25 11:30           ` Fields James
2012-06-26  5:51             ` Namjae Jeon
2012-06-26 11:10               ` Fields James [this message]
2012-06-26 11:57                 ` Namjae Jeon
2012-06-23 15:59     ` Chuck Lever
2012-06-24  4:49       ` Namjae Jeon
2012-06-24  4:44     ` Namjae Jeon

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=20120626111024.GB14279@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Trond.Myklebust@netapp.com \
    --cc=a.sahrawat@samsung.com \
    --cc=akpm@linux-foundation.org \
    --cc=bharrosh@panasas.com \
    --cc=linkinjeon@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=namjae.jeon@samsung.com \
    --cc=t.vivek@samsung.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

all inboxes | Powered by JetHome®