linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* r-o bind in nfsd
@ 2008-03-21 14:59 Miklos Szeredi
  2008-03-21 15:54 ` Al Viro
  0 siblings, 1 reply; 21+ messages in thread
From: Miklos Szeredi @ 2008-03-21 14:59 UTC (permalink / raw)
  To: haveblue; +Cc: linux-fsdevel, linux-kernel, neilb, akpm, viro, hch

Why is it that in fs/nfsd/vfs.c only vfs_mknod() and vfs_rename() are
surrounded by mnt_want_write/mnt_drop_write, and not the other
operations (vfs_create, vfs_mkdir, vfs_symlink, ...)?

I noticed this while looking at the AppArmor patches, which need to
pass the vfsmount down to the security module.  And I'm wondering, why
can't mnt_want_write() and mnt_drop_write() be done _inside_ vfs_foo()?

I know there are a few cases, where filesystems call vfs_foo()
internally, where the vfsmount isn't available, but I think the proper
solution is just to fix those places, and not recurse back into the
VFS (which is AFAICS in all those cases totally unnecessary anyway).
This would make everybody happy, no?

Miklos

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

end of thread, other threads:[~2008-03-27  0:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 14:59 r-o bind in nfsd Miklos Szeredi
2008-03-21 15:54 ` Al Viro
2008-03-21 16:24   ` Miklos Szeredi
2008-03-21 16:35     ` Al Viro
2008-03-21 16:54       ` Miklos Szeredi
2008-03-21 17:08         ` Miklos Szeredi
2008-03-21 18:11           ` Al Viro
2008-03-21 18:52             ` Miklos Szeredi
2008-03-21 19:49               ` Al Viro
2008-03-21 20:23                 ` Miklos Szeredi
2008-03-22  2:20                   ` Tetsuo Handa
2008-03-21 21:08               ` Dave Hansen
2008-03-21 21:17                 ` Miklos Szeredi
2008-03-25  2:52         ` Neil Brown
2008-03-25 11:45           ` Tetsuo Handa
2008-03-25 22:32             ` NeilBrown
     [not found]               ` <20080325224919.GM10722@ZenIV.linux.org.uk>
2008-03-25 23:29                 ` NeilBrown
2008-03-26 12:04               ` Stephen Smalley
2008-03-26 16:47                 ` Serge E. Hallyn
2008-03-26 21:35                   ` James Morris
2008-03-27  0:29                     ` Serge E. Hallyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).