diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2013-12-24 23:19:26 +0400 |
---|---|---|
committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2013-12-31 22:32:21 +0400 |
commit | be3226acc5544bcc91e756eb3ee6ca7b74f6f0a8 (patch) | |
tree | 995bb87cbc6f4e13bee60e529ace67246ee75fa2 /include/linux | |
parent | 4158608139de02f5265ec4f41774af7418911016 (diff) | |
download | linux-be3226acc5544bcc91e756eb3ee6ca7b74f6f0a8.tar.xz |
crush: new SET_CHOOSE_LEAF_TRIES command
Explicitly control the number of sample attempts, and allow the number of
tries in the recursive call to be explicitly controlled via the rule. This
is important because the amount of time we want to spend looking for a
solution may be rule dependent (e.g., higher for the wide indep pool than
the rep pools).
(We should do the same for the other tunables, by the way!)
Reflects ceph.git commit c43c893be872f709c787bc57f46c0e97876ff681.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/crush/crush.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/crush/crush.h b/include/linux/crush/crush.h index 4023b1b52296..2e50bab91655 100644 --- a/include/linux/crush/crush.h +++ b/include/linux/crush/crush.h @@ -46,6 +46,8 @@ enum { CRUSH_RULE_EMIT = 4, /* no args */ CRUSH_RULE_CHOOSE_LEAF_FIRSTN = 6, CRUSH_RULE_CHOOSE_LEAF_INDEP = 7, + + CRUSH_RULE_SET_CHOOSE_LEAF_TRIES = 9, }; /* |