git: de87ea5a43a8 - stable/13 - struct mount uppers: correct locking annotations
Konstantin Belousov
kib at FreeBSD.org
Sun Apr 11 00:56:27 UTC 2021
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=de87ea5a43a850079b5f8901795f3769c85c6f89
commit de87ea5a43a850079b5f8901795f3769c85c6f89
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-04-08 22:03:06 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-04-11 00:35:23 +0000
struct mount uppers: correct locking annotations
(cherry picked from commit 5af1131de7fc18c795ed28e69d9393f78875d3e5)
---
sys/sys/mount.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index e6a74bf1fb60..8b5712d19215 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -196,6 +196,7 @@ _Static_assert(sizeof(struct mount_pcpu) == 16,
* l - mnt_listmtx
* m - mountlist_mtx
* i - interlock
+ * i* - interlock of uppers' list head
* v - vnode freelist mutex
*
* Unmarked fields are considered stable as long as a ref is held.
@@ -240,8 +241,8 @@ struct mount {
struct vnodelst mnt_lazyvnodelist; /* (l) list of lazy vnodes */
int mnt_lazyvnodelistsize; /* (l) # of lazy vnodes */
struct lock mnt_explock; /* vfs_export walkers lock */
- TAILQ_ENTRY(mount) mnt_upper_link; /* (m) we in the all uppers */
- TAILQ_HEAD(, mount) mnt_uppers; /* (m) upper mounts over us*/
+ TAILQ_ENTRY(mount) mnt_upper_link; /* (i*) we in the all uppers */
+ TAILQ_HEAD(, mount) mnt_uppers; /* (i) upper mounts over us */
};
/*
More information about the dev-commits-src-branches
mailing list