diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-03-19 16:58:37 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2014-04-04 21:07:28 -0700 |
commit | d83ed858f144e3cfbef883d4bc499113cdddabeb (patch) | |
tree | ab5dd9ca873be26634171470f43915d19b3b78c5 /net/ceph | |
parent | e2b149cc4ba00766aceb87950c6de72ea7fc8b2e (diff) | |
download | blackbird-op-linux-d83ed858f144e3cfbef883d4bc499113cdddabeb.tar.gz blackbird-op-linux-d83ed858f144e3cfbef883d4bc499113cdddabeb.zip |
crush: add SET_CHOOSELEAF_VARY_R step
This lets you adjust the vary_r tunable on a per-rule basis.
Reflects ceph.git commit f944ccc20aee60a7d8da7e405ec75ad1cd449fac.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/crush/mapper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c index 947150cde297..a1ef53c04415 100644 --- a/net/ceph/crush/mapper.c +++ b/net/ceph/crush/mapper.c @@ -709,6 +709,11 @@ int crush_do_rule(const struct crush_map *map, choose_local_fallback_retries = curstep->arg1; break; + case CRUSH_RULE_SET_CHOOSELEAF_VARY_R: + if (curstep->arg1 >= 0) + vary_r = curstep->arg1; + break; + case CRUSH_RULE_CHOOSELEAF_FIRSTN: case CRUSH_RULE_CHOOSE_FIRSTN: firstn = 1; |