From ba344bc2b600173e92634e0195a1e12f779e2fc3 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 12 Oct 2011 13:04:28 -0400 Subject: [PATCH] ukernel: add morepackets check in listener 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: I72ff1229530bb36470891aae2e5ec65e59463084 Reviewed-on: http://gerrit.openafs.org/5605 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry-picked from eead07418f13cd87a90770f03ea5118c546d8f1a) Reviewed-on: http://gerrit.openafs.org/5894 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/rx/UKERNEL/rx_knet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rx/UKERNEL/rx_knet.c b/src/rx/UKERNEL/rx_knet.c index 082ff68603..34e4e2ba19 100644 --- a/src/rx/UKERNEL/rx_knet.c +++ b/src/rx/UKERNEL/rx_knet.c @@ -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);