]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PG: cache read-only reference to the current osdmap on pg lock
authorSamuel Just <samuel.just@dreamhost.com>
Tue, 8 Nov 2011 18:54:57 +0000 (10:54 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 9 Nov 2011 22:15:40 +0000 (14:15 -0800)
commitb41b1fa5ec0cdab2dbf4a79deefe5a31ce9a5fa1
tree24b47ffb7732849e502651bd93f7a61a5f292c78
parent5df28ecec6b91fd27d50e1923091cad2086143f6
PG: cache read-only reference to the current osdmap on pg lock

Previously, we needed to grab an osd_map read lock to send messages,
among other things.  Now, we grab a reference to the osd_map on pg lock
and refer to that.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/common/Mutex.h
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc