zfs: use vn_seqc_read_notmodify for racing .. lookups

Catching an in-flight unlocked vnode is fine here.

Reported by;	pho
This commit is contained in:
Mateusz Guzik 2021-04-22 13:18:39 +00:00
parent fc620f9782
commit 7ea3223c78

View File

@ -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;