From mboxrd@z Thu Jan 1 00:00:00 1970 From: teigland@sourceware.org Date: 26 Sep 2006 16:39:08 -0000 Subject: [Cluster-devel] cluster/dlm-kernel/src lowcomms.c Message-ID: <20060926163908.22011.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL4U4 Changes by: teigland at sourceware.org 2006-09-26 16:39:07 Modified files: dlm-kernel/src : lowcomms.c Log message: Copy the following change from the RHEL4 branch which removes CBUF_MAY_ADD(20) from dlm lowcomms: "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=RHEL4U4&r1=1.22.2.12&r2=1.22.2.12.2.1 --- cluster/dlm-kernel/src/Attic/lowcomms.c 2005/12/20 11:16:40 1.22.2.12 +++ cluster/dlm-kernel/src/Attic/lowcomms.c 2006/09/26 16:39:07 1.22.2.12.2.1 @@ -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;