mirror of
https://github.com/ceph/ceph
synced 2025-03-08 01:10:10 +00:00
osd: remove _ookup_lock_pg_with_map_lock_held()
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
60ea5e87b6
commit
26938d54d4
@ -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());
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user