]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc: Use a finisher from Journaler
authorJohn Spray <john.spray@redhat.com>
Wed, 23 Jul 2014 16:32:57 +0000 (17:32 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Aug 2014 00:34:03 +0000 (01:34 +0100)
commit61a69c80066ec2734be005b7cfed640695b86b9b
tree2a27dc24722de23bac19f55a5725d994cf0c9869
parentdb7369bb2ce16b92bed88cc475b606d26080d858
osdc: Use a finisher from Journaler

Completions from I/O operations (i.e. the objecter) hop
through the finisher twice, because of the three layers of
locking (MDS::mds_lock -> Journaler::lock -> Objecter osd session lock)

Because on the way "right" we take the locks in that order, to avoid
deadlock we can't take the locks in the opposite order on the way
"left", hence the finishers.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Journaler.cc
src/osdc/Journaler.h