]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Revert "libceph: MOSDOpReply v7 encoding"
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 8 Dec 2017 18:43:00 +0000 (19:43 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 11 Dec 2017 11:17:17 +0000 (12:17 +0100)
BugLink: https://bugs.launchpad.net/bugs/1737033
This reverts commit f14ca6ac3b198f30ee138f02c3c7d380d165736e.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/linux/ceph/ceph_features.h
net/ceph/osd_client.c

index c1ef6f14e7be7f1317e34a0deac61fcb80511eef..c3b211c9fe8348730458764f3ed40576052ae394 100644 (file)
@@ -73,8 +73,6 @@
 #define CEPH_FEATURE_MON_STATEFUL_SUB (1ULL<<57) /* stateful mon subscription */
 #define CEPH_FEATURE_MON_ROUTE_OSDMAP (1ULL<<57) /* peon sends osdmaps */
 #define CEPH_FEATURE_CRUSH_TUNABLES5   (1ULL<<58) /* chooseleaf stable mode */
-// duplicated since it was introduced at the same time as CEPH_FEATURE_CRUSH_TUNABLES5
-#define CEPH_FEATURE_NEW_OSDOPREPLY_ENCODING   (1ULL<<58) /* New, v7 encoding */
 
 /*
  * The introduction of CEPH_FEATURE_OSD_SNAPMAPPER caused the feature
@@ -121,8 +119,7 @@ static inline u64 ceph_sanitize_features(u64 features)
         CEPH_FEATURE_OSD_PRIMARY_AFFINITY |    \
         CEPH_FEATURE_MSGR_KEEPALIVE2 |         \
         CEPH_FEATURE_CRUSH_V4 |                \
-        CEPH_FEATURE_CRUSH_TUNABLES5 |         \
-        CEPH_FEATURE_NEW_OSDOPREPLY_ENCODING)
+        CEPH_FEATURE_CRUSH_TUNABLES5)
 
 #define CEPH_FEATURES_REQUIRED_DEFAULT   \
        (CEPH_FEATURE_NOSRCADDR |        \
index 5bc053778feddd0e35fe73480317be25345da61c..a28e47ff1b1b3496f753ae1aaf0ede6032a75b7b 100644 (file)
@@ -1770,7 +1770,6 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg)
        u32 osdmap_epoch;
        int already_completed;
        u32 bytes;
-       u8 decode_redir;
        unsigned int i;
 
        tid = le64_to_cpu(msg->hdr.tid);
@@ -1842,15 +1841,6 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg)
                p += 8 + 4; /* skip replay_version */
                p += 8; /* skip user_version */
 
-               if (le16_to_cpu(msg->hdr.version) >= 7)
-                       ceph_decode_8_safe(&p, end, decode_redir, bad_put);
-               else
-                       decode_redir = 1;
-       } else {
-               decode_redir = 0;
-       }
-
-       if (decode_redir) {
                err = ceph_redirect_decode(&p, end, &redir);
                if (err)
                        goto bad_put;