]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fallback for when there isn't a pool-specific choose_arg
authorIlya Dryomov <idryomov@gmail.com>
Mon, 24 Jul 2017 14:43:49 +0000 (16:43 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Aug 2017 14:46:44 +0000 (16:46 +0200)
commit19da2a180d87ef7b0d17f608f81ccc9110063557
tree5f1d1a3efc01a5970aa653ea7d5dba3e1d36de42
parente163bdfcadc3b56fb06522450b580d84f7421b3f
libceph: fallback for when there isn't a pool-specific choose_arg

There is now a fallback to a choose_arg index of -1 if there isn't
a pool-specific choose_arg set.  If you create a per-pool weight-set,
that works for that pool.  Otherwise we try the compat/default one.  If
that doesn't exist either, then we use the normal CRUSH weights.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
include/linux/crush/crush.h
net/ceph/osdmap.c