Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2021 18:31:04 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a9d418fbb843 - stable/13 - zfs: use vn_seqc_read_notmodify for racing .. lookups
Message-ID:  <202105221831.14MIV4rs018011@gitrepo.freebsd.org>

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

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

commit a9d418fbb843927fe193d19616ddef48c50ae206
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-04-22 13:18:39 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-05-22 18:30:50 +0000

    zfs: use vn_seqc_read_notmodify for racing .. lookups
    
    Catching an in-flight unlocked vnode is fine here.
    
    Reported by;    pho
    
    (cherry picked from commit 7ea3223c7822d20acfc907683fd0153d623185b3)
---
 sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
index a1e9c359b893..50454cad2468 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
@@ -807,7 +807,7 @@ zfs_lookup(vnode_t *dvp, const char *nm, vnode_t **vpp,
 	ZFS_ENTER(zfsvfs);
 	ZFS_VERIFY_ZP(zdp);
 
-	dvp_seqc = vn_seqc_read_any(dvp);
+	dvp_seqc = vn_seqc_read_notmodify(dvp);
 
 	*vpp = NULL;
 



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