vfsmount_lock in __d_path()

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

 



Hello.

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" ?

Regards.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux