https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288507

--- Comment #3 from Mark Millard <[email protected]> ---
Looks odd to me ( but was just a quick look at
/usr/src/sys/vm/vm_page.c so I might have missed
things or not identified code correctly ):

There seem to be 4 instances of: atomic_load_ptr(&m->object)
but no instances of use of atomic_store_ptr for it. Various
accesses do not use atomic_load_ptr(&m->object), just
direct use. Assignment seems to always be direct use.

I gather atomic_load_ptr/atomic_store_ptr are for
memory_order_relaxed, effectively here: const volatile
and volatile being in use --but no synchronization.

Is some of the m->object usage code just out of date
for the form in which it is written --compared to other
parts of the code?

For reference: the /usr/src/sys/ code is that for
PkgBase as of:

# uname -apKU
FreeBSD 7950X3D-ZFS 15.0-CURRENT FreeBSD 15.0-CURRENT main-n278320-3a33e39edd48
GENERIC-NODEBUG amd64 amd64 1500048 1500048

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to