Re: symlinks and NWFS

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Fri May 12 2000 - 13:39:01 EST


From: "Alexander Viro" <aviro@redhat.com>
> >
> > ->i_sem ->i_zombie
> > yes no lookup()
> > yes yes readdir(),create(),mknod(),mkdir(),symlink()

Al, could you explain why readdir acquires i_zombie? It only reads from the
directory, it should be similar to lookup().

> Another thing is that directory-moving rename()s within the same
filesystem
> are serialized (different filesystems are independent, indeed).
>
AFAIKS it should be possible to reorder

    down(&s_vfs_rename_sem);
    is_subdir()
    triple_down(...)

to
    triple_down();
    down(&s_vfs_rename_sem);
    is_subdir();

[I'm sure there is a problem, but I don't see it]
s_vfs_rename_sem is the global semaphore, we should try to hold is as short
as possible.

--
    Manfred

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



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:21 EST