]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite17e8969f5c59a10083af5e260bdad6026872203
tree5f1d1a3efc01a5970aa653ea7d5dba3e1d36de42
parent4690faf00cf838392ce038202a85ac0d5f1df598
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