git: e8d3e3884569 - stable/13 - vfs: use atomic_load_consume_ptr in vn_load_v_data_smr

Mateusz Guzik mjg at FreeBSD.org
Mon Feb 1 12:40:51 UTC 2021


The branch stable/13 has been updated by mjg:

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

commit e8d3e38845697ae831a472870d0bddd991e9041b
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-01-25 20:19:08 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-02-01 12:39:16 +0000

    vfs: use atomic_load_consume_ptr in vn_load_v_data_smr
    
    (cherry picked from commit 8d2a230e996c8aec2ec4883d45f7ac38070bd38f)
---
 sys/sys/vnode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index ffd0bdad940d..78fbec1bd0ba 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1112,7 +1112,7 @@ int vn_dir_check_exec(struct vnode *vp, struct componentname *cnp);
 	struct vnode *_vp = (vp);		\
 						\
 	VFS_SMR_ASSERT_ENTERED();		\
-	atomic_load_ptr(&(_vp)->v_data);	\
+	atomic_load_consume_ptr(&(_vp)->v_data);\
 })
 
 #endif /* _KERNEL */


More information about the dev-commits-src-branches mailing list