git: 3f56bc79860e - main - vfs: add vfs_smr_quiesce
Mateusz Guzik
mjg at FreeBSD.org
Fri Apr 2 03:13:35 UTC 2021
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=3f56bc79860ec20f0e53de42dab1c117ee68e37b
commit 3f56bc79860ec20f0e53de42dab1c117ee68e37b
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-03-30 14:44:10 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-04-02 03:11:05 +0000
vfs: add vfs_smr_quiesce
This can be used to observe all CPUs not executing while within
vfs_smr_enter.
---
sys/sys/vnode.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index f05b03c74c82..3bb6936a27b2 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1112,6 +1112,7 @@ int vn_dir_check_exec(struct vnode *vp, struct componentname *cnp);
#define VFS_SMR() vfs_smr
#define vfs_smr_enter() smr_enter(VFS_SMR())
#define vfs_smr_exit() smr_exit(VFS_SMR())
+#define vfs_smr_quiesce() quiesce_all_critical()
#define vfs_smr_entered_load(ptr) smr_entered_load((ptr), VFS_SMR())
#define VFS_SMR_ASSERT_ENTERED() SMR_ASSERT_ENTERED(VFS_SMR())
#define VFS_SMR_ASSERT_NOT_ENTERED() SMR_ASSERT_NOT_ENTERED(VFS_SMR())
More information about the dev-commits-src-main
mailing list