NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/60980 CVS commit: [netbsd-10] src/sys/external/bsd/common/include/linux
The following reply was made to PR kern/60980; it has been noted by GNATS.
From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/60980 CVS commit: [netbsd-10] src/sys/external/bsd/common/include/linux
Date: Sun, 15 Nov 2026 13:41:31 +0000
Module Name: src
Committed By: martin
Date: Sun Nov 15 13:41:31 UTC 2026
Modified Files:
src/sys/external/bsd/common/include/linux [netbsd-10]: rcupdate.h
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1415):
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.4.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