]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
con->v1 union access
authorIlya Dryomov <idryomov@gmail.com>
Thu, 3 Jul 2025 10:10:50 +0000 (12:10 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 23 Jul 2025 20:50:19 +0000 (22:50 +0200)
net/ceph/messenger.c

index d1b5705dc0c648f6515e142b5d756e868491fbbd..9f6d860411cbd114c26332e78fb7e46bfedb6add 100644 (file)
@@ -1524,7 +1524,7 @@ static void con_fault_finish(struct ceph_connection *con)
         * in case we faulted due to authentication, invalidate our
         * current tickets so that we can get new ones.
         */
-       if (con->v1.auth_retry) {
+       if (!ceph_msgr2(from_msgr(con->msgr)) && con->v1.auth_retry) {
                dout("auth_retry %d, invalidating\n", con->v1.auth_retry);
                if (con->ops->invalidate_authorizer)
                        con->ops->invalidate_authorizer(con);
@@ -1714,9 +1714,10 @@ static void clear_standby(struct ceph_connection *con)
 {
        /* come back from STANDBY? */
        if (con->state == CEPH_CON_S_STANDBY) {
-               dout("clear_standby %p and ++connect_seq\n", con);
+               dout("clear_standby %p\n", con);
                con->state = CEPH_CON_S_PREOPEN;
-               con->v1.connect_seq++;
+               if (!ceph_msgr2(from_msgr(con->msgr)))
+                       con->v1.connect_seq++;
                WARN_ON(ceph_con_flag_test(con, CEPH_CON_F_WRITE_PENDING));
                WARN_ON(ceph_con_flag_test(con, CEPH_CON_F_KEEPALIVE_PENDING));
        }