]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: wait for kv thread to start before stopping it
authorSage Weil <sage@redhat.com>
Fri, 26 May 2017 22:18:06 +0000 (18:18 -0400)
committerSage Weil <sage@redhat.com>
Tue, 30 May 2017 01:56:17 +0000 (21:56 -0400)
commitecb3167f1babf581be8b79406ba8dc0ea63d0b78
treec35f7695bcaf3ec853ed26a46f84115d8955b72d
parent811c38ed6bd7d11e196c848e19d6a46cc383d45d
os/bluestore: wait for kv thread to start before stopping it

Otherwise we can assert out when we try to join a thread that
hasn't started.

- move everything into _kv_start() and _kv_stop()
- separate stop bools for each thread
- wait until thread starts before signalling stop (and potentially calling
join()).

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h