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:25 +0400 |
commit | d390bb2a83086f2b79c152e2c1734813bd257d9b (patch) | |
tree | 27e07d62f80cb4f65a16b09cffadf71b3f243a6e /include/linux/crush/crush.h | |
parent | 917edad5d1d62070436b74ecbf5ea019b651ff69 (diff) | |
download | linux-d390bb2a83086f2b79c152e2c1734813bd257d9b.tar.xz |
crush: generalize descend_once
The legacy behavior is to make the normal number of tries for the
recursive chooseleaf call. The descend_once tunable changed this to
making a single try and bail if we get a reject (note that it is
impossible to collide in the recursive case).
The new set_chooseleaf_tries lets you select the number of recursive
chooseleaf attempts for indep mode, or default to 1. Use the same
behavior for firstn, except default to total_tries when the legacy
tunables are set (for compatibility). This makes the rule step
override the (new) default of 1 recursive attempt, keeping behavior
consistent with indep mode.
Reflects ceph.git commit 685c6950ef3df325ef04ce7c986e36ca2514c5f1.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/crush/crush.h')
0 files changed, 0 insertions, 0 deletions