]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: reuse zombie OpSequencers by collection id
authorSage Weil <sage@redhat.com>
Mon, 18 Jun 2018 12:32:08 +0000 (07:32 -0500)
committerSage Weil <sage@redhat.com>
Wed, 20 Jun 2018 19:32:30 +0000 (14:32 -0500)
commit77a38fc98a39e5ccb464e49a67f53706502b2910
tree0e09e1e8221f607878fefa0aef0106b3927e04b6
parent16a90d8ba0967e5fd15ca2e22fcd572cdff4ece3
os/bluestore: reuse zombie OpSequencers by collection id

We can get a sequence that deletes and then recreates a collection where
the transaction removing the collection is delayed (due to pending IO on
its sequencer) but colleciton create is not (new sequencer).

Avoid any such reordering by recycling the old collection's sequencer if
the zombie_osr has not been reaped yet.

Fixes: http://tracker.ceph.com/issues/24550
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 199a110c9e2a42be64bd7fd873b6b172ce1347a8)
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h