vfsmount_lock in __d_path()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I posted this message three months ago at kernelnewbies-ml, but no answer.
Now reposting at fsdevel-ml.

> In the function __d_path() at http://lxr.linux.no/source/fs/dcache.c#L1354 ,
> "vfsmnt->mnt_parent" "vfsmnt->mnt_mountpoint" "vfsmnt->mnt_parent"
> are protected by spin_lock(&vfsmount_lock), while "vfsmnt->mnt_root" is not.
> 
> In the function do_move_mount() at http://lxr.linux.no/source/fs/namespace.c#L695 ,
> "old_nd.mnt->mnt_root" is protected by spin_lock(&vfsmount_lock).
> 
> Is spin_lock(&vfsmount_lock) unnecessary for referring "vfsmnt->mnt_root" ?
In other words, don't we need to protect vfsmnt->mnt_root at
http://lxr.linux.no/source/fs/dcache.c#L1383
using vfsmount_lock ?

Regards.
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux