diff options
author | Sage Weil <sage@inktank.com> | 2012-05-07 18:35:09 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-05-07 18:38:50 -0400 |
commit | c90f95ed46393e29d843686e21947d1c6fcb1164 (patch) | |
tree | 9e4c09c00f50957cd861e9fcadc330353e9a7ae6 /net/ceph | |
parent | 8b12d47b80c7a34dffdd98244d99316db490ec58 (diff) |
crush: adjust local retry threshold
This small adjustment reflects a change that was made in ceph.git commit
af6a9f30696c900a2a8bd7ae24e8ed15fb4964bb, about 6 months ago. An N-1
search is not exhaustive. Fixed ceph.git bug #1594.
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/crush/mapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c index 436102a8a461..583f644b0e28 100644 --- a/net/ceph/crush/mapper.c +++ b/net/ceph/crush/mapper.c | |||
@@ -415,7 +415,7 @@ reject: | |||
415 | if (collide && flocal < 3) | 415 | if (collide && flocal < 3) |
416 | /* retry locally a few times */ | 416 | /* retry locally a few times */ |
417 | retry_bucket = 1; | 417 | retry_bucket = 1; |
418 | else if (flocal < in->size + orig_tries) | 418 | else if (flocal <= in->size + orig_tries) |
419 | /* exhaustive bucket search */ | 419 | /* exhaustive bucket search */ |
420 | retry_bucket = 1; | 420 | retry_bucket = 1; |
421 | else if (ftotal < 20) | 421 | else if (ftotal < 20) |