Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-11] src/sys/external/bsd/common/include/linux



Module Name:    src
Committed By:   martin
Date:           Sun Nov 15 13:40:09 UTC 2026

Modified Files:
        src/sys/external/bsd/common/include/linux [netbsd-11]: rcupdate.h

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #572):

        sys/external/bsd/common/include/linux/rcupdate.h: revision 1.9

drm: Fix rcu_replace_pointer.

This Linux API macro takes an _lvalue_ expression for an object, not
a pointer to the object -- unlike, e.g., the atomic_load/store
functions.  So we can't copy its value into a local variable (to
avoid duplicate macro argument expansion) and then assign the local
variable with rcu_assign_pointer because that will only modify the
local copy, not the caller's lvalue!

Rename the macro parameters to make this clearer so it doesn't trip
me up again next time I read this.

Probably fixes dozens of graphics problems on a generation of Intel
hardware.  Derp!

PR kern/60980: rcu_replace_pointer() fails to update the original pointer


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.8.12.1 \
    src/sys/external/bsd/common/include/linux/rcupdate.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index