]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: prioritize backfill based on *how* degraded 1979/head
authorSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 20:49:44 +0000 (13:49 -0700)
committerSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 21:35:24 +0000 (14:35 -0700)
commit0985ae71bce32c4d9e0e9e9f68bed38eb3c26897
tree4ecb67a5cdd182c3af4b1b0f07f1c2b25b5e0ba7
parentd20da8debe2e1a20e20de501e7b0a0d1a9351281
osd: prioritize backfill based on *how* degraded

Instead of prioritizing all degraded PGs equally, prioritize those that
have the fewest acting members (the most degraded).

Drop the priority constants.

Define our max priority independently of AsyncReserver, which uses a host
unsigned.

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