]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: jerasure preloads the plugin variant
authorLoic Dachary <loic-201408@dachary.org>
Thu, 21 Aug 2014 16:31:02 +0000 (18:31 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Thu, 28 Aug 2014 10:13:58 +0000 (12:13 +0200)
commitefc8bfd112dcffa02b25a361147945330c2d881e
treec2228f13049f992680a2b452544b87315e528956
parent56db6def4d62ee1a12ead064048eaaab8a5f5aee
erasure-code: jerasure preloads the plugin variant

The variant selection depending on the available CPU features is
encapsulated in a helper. The helper is used in the factory() method and
in the load() method.

The factory() method may load a variant that is not the default, for
benchmark purposes. Such a variant is not preloaded by the load() method
and upgrading while running may be problematic. However, running with a
non standard variant is used for benchmarking and upgrades in this
context are not a concern.

http://tracker.ceph.com/issues/9153 Fixes: #9153

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/erasure-code/jerasure/ErasureCodePluginSelectJerasure.cc