diff options
author | Sage Weil <sage@inktank.com> | 2012-07-30 18:15:23 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-30 18:15:23 -0700 |
commit | 546f04ef716dd49521774653d8b032a7d64c05d9 (patch) | |
tree | 162f548fc7a81b05eb1db715997b3a04693c1bcc /include/linux/crush | |
parent | 1fe60e51a3744528f3939b1b1167ca909133d9ae (diff) | |
download | op-kernel-dev-546f04ef716dd49521774653d8b032a7d64c05d9.zip op-kernel-dev-546f04ef716dd49521774653d8b032a7d64c05d9.tar.gz |
libceph: support crush tunables
The server side recently added support for tuning some magic
crush variables. Decode these variables if they are present, or use the
default values if they are not present.
Corresponds to ceph.git commit 89af369c25f274fe62ef730e5e8aad0c54f1e5a5.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'include/linux/crush')
-rw-r--r-- | include/linux/crush/crush.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/crush/crush.h b/include/linux/crush/crush.h index 7c47508..25baa28 100644 --- a/include/linux/crush/crush.h +++ b/include/linux/crush/crush.h @@ -154,6 +154,14 @@ struct crush_map { __s32 max_buckets; __u32 max_rules; __s32 max_devices; + + /* choose local retries before re-descent */ + __u32 choose_local_tries; + /* choose local attempts using a fallback permutation before + * re-descent */ + __u32 choose_local_fallback_tries; + /* choose attempts before giving up */ + __u32 choose_total_tries; }; |