From: "John Willis" <John.Willis@Distant-earth.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH] udev/mount.sh: try to kill active processes before umount
Date: Tue, 22 Jun 2010 20:11:56 +0100 [thread overview]
Message-ID: <111b01cb123e$c90177a0$5b0466e0$@Distant-earth.com> (raw)
In-Reply-To: <hvqhbh$hqo$2@dough.gmane.org>
> >> Wouldn't a umount -l be a lot better in this case?
> >
> > I'm not sure if this would do the right things.
> >
> > mount.sh is called with REMOVE action when the device *is
> > disconnected* i.e. the filesystem is no longer available.
> > So i believe it is not possible to "cleanup all references to the
> > filesystem as soon as it is not busy anymore".
> >
> > I think killing all the processes is the only way here.
>
> I don't like the idea of killing random processes, especially is that
process is
> smart enough to "move on" after a timeout.
I concur, the issue at hand is a little 'rock and a hard place' (what is the
'correct' way to deal with processes left over when the file system has most
definitely been pulled with prejudice ;)). Killing processes feels a little
wrong as a lot of apps can recover from filesystem pulls.
That said, we have been experimenting with umount -l on the OpenPandora with
some promising initial results. We are also playing with some other changes
that may also be of wider interest (mountpoints based on SD card labels if
they exist etc.). I'll keep this thread updated with the results of testing,
if it works out well I was going to suggest some of the changes for the
stock mount.sh.
There is little harm in a umount -l in the short term.
Regards,
John
next prev parent reply other threads:[~2010-06-22 19:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 10:08 [PATCH] udev/mount.sh: try to kill active processes before umount Steffen Sledz
2010-06-22 11:02 ` Koen Kooi
2010-06-22 12:01 ` Steffen Sledz
2010-06-22 14:29 ` Koen Kooi
2010-06-22 19:11 ` John Willis [this message]
2010-06-23 6:13 ` Steffen Sledz
2010-06-22 20:54 ` Phil Blundell
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='111b01cb123e$c90177a0$5b0466e0$@Distant-earth.com' \
--to=john.willis@distant-earth.com \
--cc=openembedded-devel@lists.openembedded.org \
/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