]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/vm/vm_page.h
Remove the volatile qualifier from busy_lock.
authorMark Johnston <markj@FreeBSD.org>
Wed, 29 Jul 2020 19:38:49 +0000 (19:38 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 29 Jul 2020 19:38:49 +0000 (19:38 +0000)
commit958d8f527c29658bd55a67e5e970de4447cc47e4
treeaa8f3aeae7917203ee20a54f4aaaf953ac5737e3
parent12b2f3daaa597f346a4b0065bf7f75378524ef88
Remove the volatile qualifier from busy_lock.

Use atomic(9) to load the lock state.  Some places were doing this
already, so it was inconsistent.  In initialization code, the lock state
is still initialized with plain stores.

Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25861
sys/vm/vm_page.c
sys/vm/vm_page.h