test-coroutine: Add rwlock upgrade test
commit25bc2daed0482732a2dd258dde4386f505582fa9
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Mar 2021 11:29:40 +0000 (25 12:29 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 31 Mar 2021 09:44:21 +0000 (31 10:44 +0100)
treebbb72a76bb1d7b1c749e2de2c86ebc39c6f060b8
parent050de36b13f7a841b7805391bca44f36370e86e4
test-coroutine: Add rwlock upgrade test

Test that rwlock upgrade is fair, and that readers go back to sleep if
a writer is in line.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210325112941.365238-6-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/unit/test-coroutine.c