Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193589
b: refs/heads/master
c: 2e7b3b9
h: refs/heads/master
i:
  193587: 2600547
v: v3
  • Loading branch information
Andy Grover authored and David S. Miller committed Mar 17, 2010
1 parent e3dc49f commit 7e4b510
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 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: 8e82376e5f72bb576504c8c6117685e56c1b97db
refs/heads/master: 2e7b3b994529d4760231a45a6b88950187bda877
2 changes: 0 additions & 2 deletions trunk/net/rds/cong.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ void rds_cong_queue_updates(struct rds_cong_map *map)
spin_lock_irqsave(&rds_cong_lock, flags);

list_for_each_entry(conn, &map->m_conn_list, c_map_item) {
if (conn->c_loopback)
continue;
if (!test_and_set_bit(0, &conn->c_map_queued)) {
rds_stats_inc(s_cong_update_queued);
queue_delayed_work(rds_wq, &conn->c_send_w, 0);
Expand Down
7 changes: 7 additions & 0 deletions trunk/net/rds/ib_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
BUG_ON(off % RDS_FRAG_SIZE);
BUG_ON(hdr_off != 0 && hdr_off != sizeof(struct rds_header));

/* Do not send cong updates to IB loopback */
if (conn->c_loopback
&& rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) {
rds_cong_map_updated(conn->c_fcong, ~(u64) 0);
return sizeof(struct rds_header) + RDS_CONG_MAP_BYTES;
}

/* FIXME we may overallocate here */
if (be32_to_cpu(rm->m_inc.i_hdr.h_len) == 0)
i = 1;
Expand Down
7 changes: 0 additions & 7 deletions trunk/net/rds/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,9 @@ static int rds_loop_xmit_cong_map(struct rds_connection *conn,
struct rds_cong_map *map,
unsigned long offset)
{
unsigned long i;

BUG_ON(offset);
BUG_ON(map != conn->c_lcong);

for (i = 0; i < RDS_CONG_MAP_PAGES; i++) {
memcpy((void *)conn->c_fcong->m_page_addrs[i],
(void *)map->m_page_addrs[i], PAGE_SIZE);
}

rds_cong_map_updated(conn->c_fcong, ~(u64) 0);

return sizeof(struct rds_header) + RDS_CONG_MAP_BYTES;
Expand Down

0 comments on commit 7e4b510

Please sign in to comment.