rcu: use coroutine TLS macros
commit17c78154b0ba2237c37f3e4a95140b754cb6ac8b
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 22 Feb 2022 14:01:49 +0000 (22 14:01 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Mar 2022 17:14:40 +0000 (4 18:14 +0100)
tree1360dd34b521b7673485629f74977323d754e7d7
parent47b74464565713208c218f115918bf760a528afb
rcu: use coroutine TLS macros

RCU may be used from coroutines. Standard __thread variables cannot be
used by coroutines. Use the coroutine TLS macros instead.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220222140150.27240-4-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/rcu.h
tests/unit/rcutorture.c
tests/unit/test-rcu-list.c
util/rcu.c