projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a3b490
)
crush: add note about r in recursive choose
author
Ilya Dryomov
<ilya.dryomov@inktank.com>
Tue, 24 Dec 2013 19:19:25 +0000
(21:19 +0200)
committer
Ilya Dryomov
<ilya.dryomov@inktank.com>
Tue, 31 Dec 2013 18:32:17 +0000
(20:32 +0200)
Reflects ceph.git commit
4551fee9ad89d0427ed865d766d0d44004d3e3e1
.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/crush/mapper.c
patch
|
blob
|
history
diff --git
a/net/ceph/crush/mapper.c
b/net/ceph/crush/mapper.c
index
caeb106
..
77b7a73
100644
(file)
--- a/
net/ceph/crush/mapper.c
+++ b/
net/ceph/crush/mapper.c
@@
-514,6
+514,14
@@
static void crush_choose_indep(const struct crush_map *map,
/* choose through intervening buckets */
for (;;) {
+ /* note: we base the choice on the position
+ * even in the nested call. that means that
+ * if the first layer chooses the same bucket
+ * in a different position, we will tend to
+ * choose a different item in that bucket.
+ * this will involve more devices in data
+ * movement and tend to distribute the load.
+ */
r = rep;
/* be careful */