Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Apr 2021 03:13:35 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3f56bc79860e - main - vfs: add vfs_smr_quiesce
Message-ID:  <202104020313.1323DZht060029@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f56bc79860ec20f0e53de42dab1c117ee68e37b

commit 3f56bc79860ec20f0e53de42dab1c117ee68e37b
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-03-30 14:44:10 +0000
Commit:     Mateusz Guzik <mjg@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())



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104020313.1323DZht060029>