[rds-devel] [PATCH 2/4] rds/ib: don't apply unsignaled byte accounting for the app pages

Or Gerlitz ogerlitz at voltaire.com
Mon Jan 14 01:55:46 PST 2008


unsignaled byte accounting serves to control usage of pages allocated by
rds where the xmit_rdma code handles pages allocated by the application so
remove the accounting from the rdma code.

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

Index: ofa_1_3_kernel-20080113-0200/net/rds/ib_send.c
===================================================================
--- ofa_1_3_kernel-20080113-0200.orig/net/rds/ib_send.c
+++ ofa_1_3_kernel-20080113-0200/net/rds/ib_send.c
@@ -603,12 +603,6 @@ int rds_ib_xmit_rdma(struct rds_connecti
 			sent += len;
 			rdsdebug("ic %p sent %d remote_addr %llu\n", ic, sent, remote_addr);

-			ic->i_unsignaled_bytes -= len;
-			if (ic->i_unsignaled_bytes <= 0) {
-				ic->i_unsignaled_bytes = rds_ib_sysctl_max_unsig_bytes;
-				send->s_wr.send_flags = IB_SEND_SIGNALED | IB_SEND_SOLICITED;
-			}
-
 			remote_addr += sg_dma_len(scat);
 			scat++;
 		}




More information about the rds-devel mailing list