]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: avoid unnecessary locks
authorJohn Spray <john.spray@redhat.com>
Thu, 14 Aug 2014 13:39:10 +0000 (14:39 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Aug 2014 00:34:18 +0000 (01:34 +0100)
commit611d0f778f69ea53bc4ff644f55521700ce17df7
tree9a3395f312b9097d484ab9958d40d3c9c62efc90
parent52b0ddcfb9d836a1a1afe47abd0bf1bdd0fd4c8e
librados: avoid unnecessary locks

Revise wait_for_osdmap to be called outside of RadosClient::lock
and only take the lock if it has to wait for a map.

Also, now that objecter handles its own locking nicely,
there are various places where it is no longer necessary
for RadosClient to take its own lock -- all the calls that
go directly into objecter (RadosClient::pool_*) don't need
to hold RadosClient::lock.

Signed-off-by: John Spray <john.spray@redhat.com>
src/librados/RadosClient.cc