]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
bluestore/BitAllocator: Fix deadlock with musl libc 10634/head
authorJohn Coyle <dx9err@gmail.com>
Tue, 9 Aug 2016 17:57:42 +0000 (13:57 -0400)
committerJohn Coyle <dx9err@gmail.com>
Tue, 9 Aug 2016 17:57:42 +0000 (13:57 -0400)
commite0a0f2dc6cd6e46e7864569adf7952b577d5b87c
tree12e15897d19e6bd08069ecb89cd8d2eed5cfa398
parent41af3bb45e1bff7f31babede274682f848e4bd83
bluestore/BitAllocator: Fix deadlock with musl libc

pthread_rwlock_wrlock() behaviour is undefined when calling thread holds lock. Added unlock() in shutdown() to avoid deadlock in destructor.

http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_rwlock_wrlock.html

Signed-off-by: John Coyle <dx9err@gmail.com>
src/os/bluestore/BitAllocator.cc