Alex Richardson fa2528ac64 Use atomic loads/stores when updating td->td_state
KCSAN complains about racy accesses in the locking code. Those races are
fine since they are inside a TD_SET_RUNNING() loop that expects the value
to be changed by another CPU.

Use relaxed atomic stores/loads to indicate that this variable can be
written/read by multiple CPUs at the same time. This will also prevent
the compiler from doing unexpected re-ordering.

Reported by:	GENERIC-KCSAN
Test Plan:	KCSAN no longer complains, kernel still runs fine.
Reviewed By:	markj, mjg (earlier version)
Differential Revision: https://reviews.freebsd.org/D28569
2021-02-18 14:02:48 +00:00
..
2020-11-19 03:59:21 +00:00
2020-02-17 15:11:07 +00:00
2020-10-14 22:51:40 +00:00
2020-08-17 13:02:01 +00:00
2020-11-04 16:30:56 +00:00
2020-08-17 13:02:01 +00:00
2021-01-25 21:50:37 +00:00
2020-11-19 03:59:21 +00:00
2020-11-19 03:59:21 +00:00
2020-11-19 03:59:21 +00:00
2021-02-17 16:32:11 -08:00