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:
parent
fc620f9782
commit
7ea3223c78
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user