]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: document split tracking structures a bit
authorSage Weil <sage@redhat.com>
Tue, 12 Dec 2017 22:22:16 +0000 (16:22 -0600)
committerSage Weil <sage@redhat.com>
Thu, 11 Jan 2018 23:07:00 +0000 (17:07 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.h

index 2d10d6f3b032d6445f5c0489842203d5d6a9ec27..e4517873e89bbd3667c2a2d8fa7d328a4022b7be 100644 (file)
@@ -913,8 +913,13 @@ public:
 private:
   // split
   Mutex in_progress_split_lock;
+  // splits are "pending" after OSD has consumed the map indicating the PG should
+  // split but the PG has not yet processed the map.
   map<spg_t, spg_t> pending_splits; // child -> parent
   map<spg_t, set<spg_t> > rev_pending_splits; // parent -> [children]
+
+  // splits are "in progress" after the PG has gotten the map, and we hold the
+  // parent lock, but the children have not yet been created.
   set<spg_t> in_progress_splits;       // child
 
 public: