public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] unexport __mntput()
@ 2005-08-15  1:53 Coywolf Qi Hunt
  2005-08-15  4:07 ` Mike Waychison
  0 siblings, 1 reply; 5+ messages in thread
From: Coywolf Qi Hunt @ 2005-08-15  1:53 UTC (permalink / raw)
  To: akpm; +Cc: mikew, bunk, linux-kernel

Hello,

Unexport __mntput() was talked about two months ago. http://lkml.org/lkml/2005/6/9/69
Modules should not call __mntput() directly. If autofs or nfsd does that, it's
 being wrong.

		Coywolf


Signed-off-by: Coywolf Qi Hunt <coywolf@sosdg.org>
--- 2.6.13-rc6/fs/namespace.c~unexport-__mntput	2005-08-12 08:21:22.000000000 -0500
+++ 2.6.13-rc6/fs/namespace.c	2005-08-14 20:32:01.000000000 -0500
@@ -180,8 +180,6 @@
 	deactivate_super(sb);
 }
 
-EXPORT_SYMBOL(__mntput);
-
 /* iterator */
 static void *m_start(struct seq_file *m, loff_t *pos)
 {

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] unexport __mntput()
  2005-08-15  1:53 [patch] unexport __mntput() Coywolf Qi Hunt
@ 2005-08-15  4:07 ` Mike Waychison
  2005-08-15  5:14   ` Coywolf Qi Hunt
  2005-08-16 11:21   ` Jan Engelhardt
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Waychison @ 2005-08-15  4:07 UTC (permalink / raw)
  To: coywolf; +Cc: akpm, bunk, linux-kernel

Coywolf Qi Hunt wrote:
> Hello,
> 
> Unexport __mntput() was talked about two months ago. http://lkml.org/lkml/2005/6/9/69
> Modules should not call __mntput() directly. If autofs or nfsd does that, it's
>  being wrong.

I think you missed the point in the last discussion.  __mntput is called 
from mntput(), which autofs and nfsd call.  Their use is correct given 
what they do:

Autofs 3 and 4 use it for walking the vfsmount tree and determining 
if/when a mountpoint is ready to expire.

Nfsd uses it to serve up nfs exports that don't cross mountpoints (or 
do, if "crossmnt" is specified in /etc/exports.

Thanks,

Mike Waychison

> 
> 		Coywolf
> 
> 
> Signed-off-by: Coywolf Qi Hunt <coywolf@sosdg.org>
> --- 2.6.13-rc6/fs/namespace.c~unexport-__mntput	2005-08-12 08:21:22.000000000 -0500
> +++ 2.6.13-rc6/fs/namespace.c	2005-08-14 20:32:01.000000000 -0500
> @@ -180,8 +180,6 @@
>  	deactivate_super(sb);
>  }
>  
> -EXPORT_SYMBOL(__mntput);
> -
>  /* iterator */
>  static void *m_start(struct seq_file *m, loff_t *pos)
>  {


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] unexport __mntput()
  2005-08-15  4:07 ` Mike Waychison
@ 2005-08-15  5:14   ` Coywolf Qi Hunt
  2005-08-16 11:21   ` Jan Engelhardt
  1 sibling, 0 replies; 5+ messages in thread
From: Coywolf Qi Hunt @ 2005-08-15  5:14 UTC (permalink / raw)
  To: Mike Waychison; +Cc: coywolf, akpm, bunk, linux-kernel

On 8/15/05, Mike Waychison <mikew@google.com> wrote:
> Coywolf Qi Hunt wrote:
> > Hello,
> >
> > Unexport __mntput() was talked about two months ago. http://lkml.org/lkml/2005/6/9/69
> > Modules should not call __mntput() directly. If autofs or nfsd does that, it's
> >  being wrong.
> 
> I think you missed the point in the last discussion.  __mntput is called

Yes, indeed.

> from mntput(), which autofs and nfsd call.  Their use is correct given
> what they do:
> 
> Autofs 3 and 4 use it for walking the vfsmount tree and determining
> if/when a mountpoint is ready to expire.
> 
> Nfsd uses it to serve up nfs exports that don't cross mountpoints (or
> do, if "crossmnt" is specified in /etc/exports.

And more than above, there's more stuff depend on it, af_unix, ipc
message queues, etc.

Thanks for your help.
-- 
Coywolf Qi Hunt
http://ahbl.org/~coywolf/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] unexport __mntput()
  2005-08-15  4:07 ` Mike Waychison
  2005-08-15  5:14   ` Coywolf Qi Hunt
@ 2005-08-16 11:21   ` Jan Engelhardt
  2005-08-16 17:13     ` Mike Waychison
  1 sibling, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2005-08-16 11:21 UTC (permalink / raw)
  To: Mike Waychison; +Cc: coywolf, akpm, bunk, linux-kernel


> Nfsd uses it to serve up nfs exports that don't cross mountpoints (or do, if
> "crossmnt" is specified in /etc/exports.

Is not this called nohide?



Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] unexport __mntput()
  2005-08-16 11:21   ` Jan Engelhardt
@ 2005-08-16 17:13     ` Mike Waychison
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Waychison @ 2005-08-16 17:13 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: coywolf, akpm, bunk, linux-kernel

Jan Engelhardt wrote:
>>Nfsd uses it to serve up nfs exports that don't cross mountpoints (or do, if
>>"crossmnt" is specified in /etc/exports.
> 
> 
> Is not this called nohide?
> 
> 

On the command line it's a synonym, but the nfs-utils uses 
NFSEXP_CROSSMOUNT to tell the kernel.

Mike Waychison

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-16 17:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15  1:53 [patch] unexport __mntput() Coywolf Qi Hunt
2005-08-15  4:07 ` Mike Waychison
2005-08-15  5:14   ` Coywolf Qi Hunt
2005-08-16 11:21   ` Jan Engelhardt
2005-08-16 17:13     ` Mike Waychison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox