ukernel: add morepackets check in listener
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 12 Oct 2011 17:04:28 +0000 (13:04 -0400)
committerDerrick Brashear <shadow@dementix.org>
Sun, 23 Oct 2011 22:42:02 +0000 (15:42 -0700)
Make the listener loop actually check for more packets needed,
like kernel, pthreads and lwp. Only checking for new packets every
20 seconds isn't sufficient on today's networks!

Change-Id: I80319cfd9d540c9a56b0dd8d948a380665426409
Reviewed-on: http://gerrit.openafs.org/5605
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>

src/rx/UKERNEL/rx_knet.c

index 082ff68..34e4e2b 100644 (file)
@@ -73,6 +73,9 @@ rxi_ListenerProc(osi_socket usockp, int *tnop, struct rx_call **newcallp)
      * for processing.
      */
     while (1) {
+        /* See if a check for additional packets was issued */
+        rx_CheckPackets();
+
        tp = rxi_AllocPacket(RX_PACKET_CLASS_RECEIVE);
        usr_assert(tp != NULL);
        rc = rxi_ReadPacket(usockp, tp, &host, &port);