Skip to contentSkip to conversation

cluster/dlm-kernel/src lowcomms.c

Cluster-devel [email protected] 1 participant 1 message Sep 12, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: pcaulfield at sourceware.org 2006-09-12 14:48:46

Modified files:
dlm-kernel/src : lowcomms.c

Log message:
Remove check for small packets as it seems to cause problems with some customer sites.
Ref: bz#204146

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm-kernel/src/lowcomms.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.22.2.12&r2=1.22.2.13

dlm-kernel/src/Attic/lowcomms.c +0 -7
@@ -350,13 +350,6 @@
 		CBUF_INIT(&con->cb, PAGE_CACHE_SIZE);
 	}
 
-	/*
-	 * To avoid doing too many short reads, we will reschedule for
-	 * another time if there are less than 20 bytes left in the buffer.
-	 */
-	if (!CBUF_MAY_ADD(&con->cb, 20))
-		goto out_resched;
-
 	msg.msg_control = NULL;
 	msg.msg_controllen = 0;
 	msg.msg_iovlen = 1;