]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: small msgr fixup
authorSage Weil <sage@newdream.net>
Thu, 19 Jun 2008 04:17:25 +0000 (21:17 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 Jun 2008 04:17:25 +0000 (21:17 -0700)
src/kernel/messenger.c

index 20a508834aea2ce3dfa13a8c55e71dcb11fc4cdc..2bc415595bcaa5f0202127333a0f07ecd7b42094 100644 (file)
@@ -1560,9 +1560,9 @@ more:
        dout(10, "con_work %p start, clearing QUEUED\n", con);
        clear_bit(QUEUED, &con->state);
        
-       if (test_bit(CLOSED, &con->state) ||
-           test_bit(STANDBY, &con->state)) {
-               dout(5, "con_work CLOSED|STANDBY\n");
+       if (con->sock == 0 &&
+           !test_bit(NEW, &con->state)) {
+               dout(5, "con_work no sock\n");
                goto done;
        }