]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove _ookup_lock_pg_with_map_lock_held()
authorSage Weil <sage@redhat.com>
Thu, 4 Jan 2018 18:53:39 +0000 (12:53 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:49 +0000 (08:26 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h

index f07266da06b6dd369f3576189b8fcf2acc045fa8..e882f342c3906a2bdd220bc447aa1710856df8a3 100644 (file)
@@ -3935,14 +3935,6 @@ PG *OSD::lookup_lock_pg(spg_t pgid)
   return _lookup_lock_pg(pgid);
 }
 
-PG *OSD::_lookup_lock_pg_with_map_lock_held(spg_t pgid)
-{
-  assert(pg_map.count(pgid));
-  PG *pg = pg_map[pgid];
-  pg->lock();
-  return pg;
-}
-
 void OSD::load_pgs()
 {
   assert(osd_lock.is_locked());
index bac288101e2e849902d9d5c4ea8cdaf5654d0a76..da17b9e85a1c4fdfcc87f59d397fe6c1c26d58ed 100644 (file)
@@ -1864,7 +1864,6 @@ protected:
   PGRecoveryStats pg_recovery_stats;
 
   PGRef _lookup_pg(spg_t pgid);
-  PG   *_lookup_lock_pg_with_map_lock_held(spg_t pgid);
   PG   *_lookup_lock_pg(spg_t pgid);
 
 public: