]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/vm/vm_page.h
Remove the volatile qualifier from busy_lock.
authormarkj <markj@FreeBSD.org>
Wed, 29 Jul 2020 19:38:49 +0000 (19:38 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 29 Jul 2020 19:38:49 +0000 (19:38 +0000)
commit272dce89ccf9041ff858e8b73a5960f58bc8b90b
treeaa8f3aeae7917203ee20a54f4aaaf953ac5737e3
parentb3d28521df4df45135977b8a84e809206fd97af5
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