Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214391
b: refs/heads/master
c: 1d34f17
h: refs/heads/master
i:
  214389: 72bddac
  214387: c373354
  214383: d6a7f41
v: v3
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent ecb6353 commit 4cfb768
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da5a06cef5724737af4315715632f0a07dd5e116
refs/heads/master: 1d34f175712b59ad292ecbbaa8fc05402a1fd8ed
1 change: 0 additions & 1 deletion trunk/net/rds/ib.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ struct rds_ib_connection {

/* Batched completions */
unsigned int i_unsignaled_wrs;
long i_unsignaled_bytes;
};

/* This assumes that atomic_t is at least 32 bits */
Expand Down
7 changes: 0 additions & 7 deletions trunk/net/rds/ib_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
}

ic->i_unsignaled_wrs = rds_ib_sysctl_max_unsig_wrs;
ic->i_unsignaled_bytes = rds_ib_sysctl_max_unsig_bytes;
rds_message_addref(rm);
ic->i_rm = rm;

Expand Down Expand Up @@ -617,12 +616,6 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
send->s_wr.send_flags |= IB_SEND_SIGNALED | IB_SEND_SOLICITED;
}

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;
}

/*
* Always signal the last one if we're stopping due to flow control.
*/
Expand Down
13 changes: 0 additions & 13 deletions trunk/net/rds/ib_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ unsigned long rds_ib_sysctl_max_unsig_wrs = 16;
static unsigned long rds_ib_sysctl_max_unsig_wr_min = 1;
static unsigned long rds_ib_sysctl_max_unsig_wr_max = 64;

unsigned long rds_ib_sysctl_max_unsig_bytes = (16 << 20);
static unsigned long rds_ib_sysctl_max_unsig_bytes_min = 1;
static unsigned long rds_ib_sysctl_max_unsig_bytes_max = ~0UL;

/*
* This sysctl does nothing.
*
Expand Down Expand Up @@ -93,15 +89,6 @@ ctl_table rds_ib_sysctl_table[] = {
.extra1 = &rds_ib_sysctl_max_unsig_wr_min,
.extra2 = &rds_ib_sysctl_max_unsig_wr_max,
},
{
.procname = "max_unsignaled_bytes",
.data = &rds_ib_sysctl_max_unsig_bytes,
.maxlen = sizeof(unsigned long),
.mode = 0644,
.proc_handler = proc_doulongvec_minmax,
.extra1 = &rds_ib_sysctl_max_unsig_bytes_min,
.extra2 = &rds_ib_sysctl_max_unsig_bytes_max,
},
{
.procname = "max_recv_allocation",
.data = &rds_ib_sysctl_max_recv_allocation,
Expand Down

0 comments on commit 4cfb768

Please sign in to comment.