lkml.org 
[lkml]   [2002]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about pseudo filesystems
Alexander Viro wrote:
> It is neither safe nor needed. Please, look at the previous posting again -
> neither variant calls mntput() in ->release().
>
> Now, __fput() _does_ call mntput() - always. And yes, if that happens to
> be the final reference - it's OK.

Thanks, that's really nice.

I'd assumed `kern_mount' was similar to mounting a normal filesystem,
but in a non-existent namespace. Traditionally in unix you can't
unmount a filesystem when its in use, and mounts don't disappear when
the last file being used on them disappears.

But you've rather cutely arranged that these kinds of mount _do_
disappear when the last file being used on them disappears. Clever, if
a bit disturbing.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.146 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site