* lazy-umount cwd and ..
@ 2004-05-06 4:44 Tim Hockin
2004-05-06 6:46 ` viro
0 siblings, 1 reply; 3+ messages in thread
From: Tim Hockin @ 2004-05-06 4:44 UTC (permalink / raw)
To: linux-kernel; +Cc: viro
I notice that a process that is in a dir which gets lazy-unmounted
suddenly sees it's current dir change and its '..' dir points back to
itself.
I'm not sure it's a huge deal, but we have a half-patch floating around
that changes the behavior such that the unmounted mnt->mnt_parent is
retained and unreferenced when the mnt is finally released. This seems to
make any process which is in the unmounted mount not see anything
different, but does not let any new processes into the mount.
Minor, but friendly.
Should I bother to polish this patch off and send it, or is it just not
something we want to care about?
Tim
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lazy-umount cwd and ..
2004-05-06 4:44 lazy-umount cwd and Tim Hockin
@ 2004-05-06 6:46 ` viro
2004-05-06 6:58 ` Tim Hockin
0 siblings, 1 reply; 3+ messages in thread
From: viro @ 2004-05-06 6:46 UTC (permalink / raw)
To: Tim Hockin; +Cc: linux-kernel
On Wed, May 05, 2004 at 09:44:33PM -0700, Tim Hockin wrote:
> I notice that a process that is in a dir which gets lazy-unmounted
> suddenly sees it's current dir change and its '..' dir points back to
> itself.
>
> I'm not sure it's a huge deal, but we have a half-patch floating around
> that changes the behavior such that the unmounted mnt->mnt_parent is
> retained and unreferenced when the mnt is finally released. This seems to
> make any process which is in the unmounted mount not see anything
> different, but does not let any new processes into the mount.
>
> Minor, but friendly.
>
> Should I bother to polish this patch off and send it, or is it just not
> something we want to care about?
No. This is simply wrong - one of the situations when you want lazy-umount
is getting a stuck filesystem (e.g. NFS mounted hard) and wanting to get
it out of the way, so that stuff it's mounted on could be unmounted clean.
So we definitely don't want to keep anything pinned down.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lazy-umount cwd and ..
2004-05-06 6:46 ` viro
@ 2004-05-06 6:58 ` Tim Hockin
0 siblings, 0 replies; 3+ messages in thread
From: Tim Hockin @ 2004-05-06 6:58 UTC (permalink / raw)
To: viro; +Cc: linux-kernel
On Thu, May 06, 2004 at 07:46:17AM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote:
> On Wed, May 05, 2004 at 09:44:33PM -0700, Tim Hockin wrote:
> > Should I bother to polish this patch off and send it, or is it just not
> > something we want to care about?
>
> No. This is simply wrong - one of the situations when you want lazy-umount
> is getting a stuck filesystem (e.g. NFS mounted hard) and wanting to get
> it out of the way, so that stuff it's mounted on could be unmounted clean.
>
> So we definitely don't want to keep anything pinned down.
I'll buy that. I guess it's not worth dreaming up something else to make
that be less surprising to apps with cwd in a lazy umounted mount.
Cheers.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-06 6:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-06 4:44 lazy-umount cwd and Tim Hockin
2004-05-06 6:46 ` viro
2004-05-06 6:58 ` Tim Hockin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox