]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: manage backoffs per-pg; drop special split logic
authorSage Weil <sage@redhat.com>
Mon, 13 Feb 2017 14:13:04 +0000 (09:13 -0500)
committerSage Weil <sage@redhat.com>
Tue, 14 Feb 2017 04:03:52 +0000 (23:03 -0500)
commit5825a1340374bb41491e0814782bd9f2f6a4b8aa
tree4e3d46b5e9feca9328530f785966122db6c7dc06
parentb15d12d4b3e8d2d98cd087cf266d4e99e495acd5
osd: manage backoffs per-pg; drop special split logic

Switch backoffs to be owned by a specific spg_t.  Instead of wonky split
logic, just clear them.  This is mostly just for convenience; we could
conceivably only clear the range belonging to children (just to stay
tidy--we'll never get a request in that range) but why bother.

The full pg backoffs are still defined by the range for the pg, although
it's a bit redundant--we could just as easily do [min,max).  This way we
get readable hobject ranges in the messages that go by without having to
map to/from pgids.

Add Session::add_backoff() helper to keep Session internals out of PG.h.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/PrimaryLogPG.cc
src/osd/Session.cc
src/osd/Session.h