]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: Remove mutable part of CRUSH map
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 28 Jun 2016 21:55:39 +0000 (17:55 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 Nov 2016 18:54:37 +0000 (13:54 -0500)
commitcbcd039651c0569551cb90d26ce27e1432671f2a
tree4abbf442146a66bd6eefe38b13802fbf0475eb7a
parent0a45b22f78541750d791de060e4dff98a5d96d0c
crush: Remove mutable part of CRUSH map

Then add it to the working state. It would be very nice if we didn't
have to take a lock to calculate a crush placement. By moving the
permutation array into the working data, we can treat the CRUSH map as
immutable.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/crush/builder.c
src/crush/crush.c
src/crush/crush.h
src/crush/mapper.c
src/crush/mapper.h
src/test/crush/crush.cc
src/test/erasure-code/TestErasureCodeIsa.cc
src/test/erasure-code/TestErasureCodeJerasure.cc
src/test/erasure-code/TestErasureCodeLrc.cc