mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
tmpfs: drop acq fence now that vn_load_v_data_smr has consume semantics
This commit is contained in:
parent
7af02ef0b2
commit
c09f799271
2 changed files with 0 additions and 4 deletions
|
|
@ -356,9 +356,6 @@ tmpfs_alloc_node(struct mount *mp, struct tmpfs_mount *tmp, enum vtype type,
|
|||
* pointer to also get the above content in a stable manner.
|
||||
* Worst case tn_link_smr flag may be set to true despite being stale,
|
||||
* while the target buffer is already cleared out.
|
||||
*
|
||||
* TODO: Since there is no load consume primitive provided
|
||||
* right now, the load is performed with an acquire fence.
|
||||
*/
|
||||
atomic_store_ptr(&nnode->tn_link_target, symlink);
|
||||
atomic_store_char((char *)&nnode->tn_link_smr, symlink_smr);
|
||||
|
|
|
|||
|
|
@ -1466,7 +1466,6 @@ tmpfs_fplookup_symlink(struct vop_fplookup_symlink_args *v)
|
|||
|
||||
vp = v->a_vp;
|
||||
node = VP_TO_TMPFS_NODE_SMR(vp);
|
||||
atomic_thread_fence_acq();
|
||||
if (__predict_false(node == NULL))
|
||||
return (EAGAIN);
|
||||
if (!atomic_load_char(&node->tn_link_smr))
|
||||
|
|
|
|||
Loading…
Reference in a new issue