mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
zfs: use atomic_load_consume_ptr for z_cached_symlink
This commit is contained in:
parent
8d2a230e99
commit
7af02ef0b2
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue