]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: handle zombie OpSequencers 13888/head
authorSage Weil <sage@redhat.com>
Sat, 18 Mar 2017 17:51:08 +0000 (13:51 -0400)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 18:56:31 +0000 (13:56 -0500)
commitdef17606fc46bf6dadf40828a419e5914c83e2a9
treeca731ac18a2a5e30b3140a5894e52da7841e814b
parentd8fa788ca84f49587f58af7658c9d49d2bb5813d
os/bluestore: handle zombie OpSequencers

It's possible for the Sequencer to go away while the OpSequencer still has
txcs in flight.  We were handling the case where the osr was on the
deferred_queue, but it may be off the deferred_queue but waiting for the
commit to happen, and we still need to wait for that.

Fix this by introducing a 'zombie' state for the osr, in which we keep the
osr in the osr_set.

Clean up the OpSequencer methods and a few other method names.

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