libceph: enable PRIMARY_AFFINITY feature bit
authorIlya Dryomov <ilya.dryomov@inktank.com>
Mon, 24 Mar 2014 15:12:50 +0000 (17:12 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:08:20 +0000 (21:08 -0700)
Announce our support for osdmaps with non-default primary affinity
values.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
include/linux/ceph/ceph_features.h

index 7a4cab50b2cd7285aea55559abaacf1fc762a132..d12659ce550d2f160cf7a0bebdc51160b39a6c3a 100644 (file)
@@ -91,7 +91,8 @@ static inline u64 ceph_sanitize_features(u64 features)
         CEPH_FEATURE_CRUSH_V2 |                \
         CEPH_FEATURE_EXPORT_PEER |             \
         CEPH_FEATURE_OSDMAP_ENC |              \
-        CEPH_FEATURE_CRUSH_TUNABLES3)
+        CEPH_FEATURE_CRUSH_TUNABLES3 |         \
+        CEPH_FEATURE_OSD_PRIMARY_AFFINITY)
 
 #define CEPH_FEATURES_REQUIRED_DEFAULT   \
        (CEPH_FEATURE_NOSRCADDR |        \