]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Accidently deleting listener
authorpatiencew <patiencew@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 8 Nov 2007 19:25:23 +0000 (19:25 +0000)
committerpatiencew <patiencew@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 8 Nov 2007 19:25:23 +0000 (19:25 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2036 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/kernel/poll.c

index f3b711c8c8d2b7bb6774d11e6ae8f6907564e66b..95e398b52fabdfcdbb6231241ea807e6b1d04f57 100644 (file)
@@ -24,11 +24,12 @@ static int do_ceph_pollfd(struct file *file)
         if (mask & POLLIN) {
                printk(KERN_INFO "socket read ready: %d\n", mask);
                 /* if (sk->sk_state == TCP_LISTEN) */
-               if (test_bit(LISTENING, &con>state) {
-                       set_bit(ACCEPTING, &con>state);
+               if (test_bit(LISTENING, &con->state) {
+                       set_bit(ACCEPTING, &con->state);
                         queue_work(recvwq, &con->awork)
+                       return(0); /* don't want to delete.. */
                } else {
-                       /* set_bit(READ_SCHED, &con>state); */
+                       /* set_bit(READ_SCHED, &con->state); */
                        queue_work(recvwq, &con->rwork);
                }
         }
@@ -49,7 +50,7 @@ static int do_ceph_pollfd(struct file *file)
 /*
  * Poll thread function, start after creating listener connection
  */
-static int ceph_poll(struct ceph_messenger *msgr)
+int ceph_poll(struct ceph_messenger *msgr)
 {
        struct ceph_pollable *pos, *tmp;
        struct ceph_pollable *plist = msgr->poll_task->pfiles->poll_list;