aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/ceph_features.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-26 13:39:09 -0500
committerSage Weil <sage@inktank.com>2013-02-26 18:03:06 -0500
commit83ca14fdd35821554058e5fd4fa7b118ee504a33 (patch)
tree8f105c71b91854c68db4281f255723356e709ccd /include/linux/ceph/ceph_features.h
parent1b83bef24c6746a146d39915a18fb5425f2facb0 (diff)
libceph: add support for HASHPSPOOL pool flag
The legacy behavior adds the pgid seed and pool together as the input for CRUSH. That is problematic because each pool's PGs end up mapping to the same OSDs: 1.5 == 2.4 == 3.3 == ... Instead, if the HASHPSPOOL flag is set, we has the ps and pool together and feed that into CRUSH. This ensures that two adjacent pools will map to an independent pseudorandom set of OSDs. Advertise our support for this via a protocol feature flag. Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'include/linux/ceph/ceph_features.h')
-rw-r--r--include/linux/ceph/ceph_features.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ceph/ceph_features.h b/include/linux/ceph/ceph_features.h
index ab0a54286e0d..76554cecaab2 100644
--- a/include/linux/ceph/ceph_features.h
+++ b/include/linux/ceph/ceph_features.h
@@ -34,6 +34,7 @@
34#define CEPH_FEATURE_REPLY_CREATE_INODE (1<<27) 34#define CEPH_FEATURE_REPLY_CREATE_INODE (1<<27)
35#define CEPH_FEATURE_OSD_HBMSGS (1<<28) 35#define CEPH_FEATURE_OSD_HBMSGS (1<<28)
36#define CEPH_FEATURE_MDSENC (1<<29) 36#define CEPH_FEATURE_MDSENC (1<<29)
37#define CEPH_FEATURE_OSDHASHPSPOOL (1<<30)
37 38
38/* 39/*
39 * Features supported. 40 * Features supported.
@@ -45,7 +46,8 @@
45 CEPH_FEATURE_OSDENC | \ 46 CEPH_FEATURE_OSDENC | \
46 CEPH_FEATURE_CRUSH_TUNABLES | \ 47 CEPH_FEATURE_CRUSH_TUNABLES | \
47 CEPH_FEATURE_CRUSH_TUNABLES2 | \ 48 CEPH_FEATURE_CRUSH_TUNABLES2 | \
48 CEPH_FEATURE_REPLY_CREATE_INODE) 49 CEPH_FEATURE_REPLY_CREATE_INODE | \
50 CEPH_FEATURE_OSDHASHPSPOOL)
49 51
50#define CEPH_FEATURES_REQUIRED_DEFAULT \ 52#define CEPH_FEATURES_REQUIRED_DEFAULT \
51 (CEPH_FEATURE_NOSRCADDR | \ 53 (CEPH_FEATURE_NOSRCADDR | \