All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: vfs-2.6 mountinfo
       [not found] <E1JgKb1-0006WP-BG@pomaz-ex.szeredi.hu>
@ 2008-03-31 17:00 ` Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2008-03-31 17:00 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-fsdevel

On Mon, Mar 31, 2008 at 04:02:47PM +0200, Miklos Szeredi wrote:
> Some hunks from "[patch 4/7] vfs: mountinfo: add mount peer group ID"
> seems to have accidentally leaked into "[PATCH] teach seq_file to
> discard entries", affecting bisectability.

Ugh...  Will fix; thanks for spotting - I wonder how that had happened...

> And in "[patch 3/7] vfs: mountinfo: add mount ID" allocation is *not*
> serialized by namespace_sem on the vfs_kern_mount() call path, so this
> is racy AFAICS:

*hrm*

Right you are ;-/  I really don't like the look of that - the real question
here is whether we want vfsmount IDs to exist through the entire lifetime
of vfsmount.  If we do, then we need that (and use of vfsmount_lock in
free_vfsmnt() path as it is done now); if not...  I'm still tempted to
move allocation to the same place where we attach the damn thing to
some tree...

Anyway, retry variant will do for now, but I still wonder whether it's
really right long-term...  Do we want vfsmount IDs to have any exposure
other than that in mountinfo?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-31 17:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1JgKb1-0006WP-BG@pomaz-ex.szeredi.hu>
2008-03-31 17:00 ` vfs-2.6 mountinfo Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.