[struct mount] Outdated locking documentation for mnt_uppers

Alexander Lochmann alexander.lochmann at tu-dortmund.de
Wed Apr 7 19:50:22 UTC 2021


Hi folks,

I came accross the locking documentation for struct mount.
According to the definition [1], mnt_uppers should be accessed using the 
global mountlist_mtx.
However, the code uses the MNT_ILOCK macro, which uses the mnt_mtx.
Is the locking documentation still valid?
Shouldn't it be updated?

Regards,
Alex

[1] https://github.com/freebsd/freebsd-src/blob/main/sys/sys/mount.h#L246
-- 
Technische Universität Dortmund
Alexander Lochmann                PGP key: 0xBC3EF6FD
Otto-Hahn-Str. 16                 phone:  +49.231.7556141
D-44227 Dortmund                  fax:    +49.231.7556116
http://ess.cs.tu-dortmund.de/Staff/al


More information about the freebsd-fs mailing list