]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Crush: Ensuring at most num-rep osds are selected
authorJohnu George <johnugeo@cisco.com>
Wed, 24 Sep 2014 16:32:50 +0000 (09:32 -0700)
committerJohnu George <johnugeo@cisco.com>
Sat, 4 Oct 2014 18:45:32 +0000 (11:45 -0700)
commite30c570ce691a994898b4a933c57e7ae014cdc30
tree65a670bd5d7c83169e11765e39836ad35563dfb9
parent6070383bc2c433e36f7ab5dc1ec09a3e7439d523
Crush: Ensuring at most num-rep osds are selected

Crush temporary buffers are allocated as per replica size configured
by the user.When there are more final osds (to be selected as per
rule) than the replicas, buffer overlaps and it causes crash.Now, it
ensures that at most num-rep osds are selected even if more number of
osds are allowed by the rule.

Fixes: #9492
Signed-off-by: Johnu George <johnugeo@cisco.com>
(cherry picked from commit 6b4d1aa99718e3b367496326c1e64551330fabc0)
src/crush/mapper.c