mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
Merge pull request #21771 from majianpeng/osd-remove-pgslot
osd: fix bug which cause can't erase OSDShardPGSlot. Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
64448b6f8e
@ -9485,14 +9485,15 @@ void OSDShard::consume_map(
|
||||
*pushes_to_free += qi.get_reserved_pushes();
|
||||
slot->waiting.pop_front();
|
||||
}
|
||||
if (slot->waiting.empty() &&
|
||||
slot->num_running == 0 &&
|
||||
!slot->pg) {
|
||||
dout(20) << __func__ << " " << pgid << " empty, pruning" << dendl;
|
||||
p = pg_slots.erase(p);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (slot->waiting.empty() &&
|
||||
slot->num_running == 0 &&
|
||||
!slot->pg) {
|
||||
dout(20) << __func__ << " " << pgid << " empty, pruning" << dendl;
|
||||
p = pg_slots.erase(p);
|
||||
continue;
|
||||
}
|
||||
|
||||
++p;
|
||||
}
|
||||
if (queued) {
|
||||
|
Loading…
Reference in New Issue
Block a user