zfs: use atomic_load_consume_ptr for z_cached_symlink

This commit is contained in:
Mateusz Guzik 2021-01-25 21:15:19 +01:00
parent 8d2a230e99
commit 7af02ef0b2

View File

@ -4477,10 +4477,7 @@ zfs_freebsd_fplookup_symlink(struct vop_fplookup_symlink_args *v)
return (EAGAIN);
}
/*
* FIXME: Load consume would be sufficient but there is no primitive to do it.
*/
target = (char *)atomic_load_acq_ptr((uintptr_t *)&zp->z_cached_symlink);
target = atomic_load_consume_ptr(&zp->z_cached_symlink);
if (target == NULL) {
return (EAGAIN);
}