Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214445
b: refs/heads/master
c: 501dccc
h: refs/heads/master
i:
  214443: ddeff1a
v: v3
  • Loading branch information
Zach Brown authored and Andy Grover committed Sep 9, 2010
1 parent 83422f7 commit 5b3f694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 671202f3491cccdb267f88ad59ba0635aeb2a22e
refs/heads/master: 501dcccdb7a2335cde07d4acb56e636182d62944
5 changes: 3 additions & 2 deletions trunk/net/rds/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ static void rds_conn_message_info(struct socket *sock, unsigned int len,
struct rds_connection *conn;
struct rds_message *rm;
unsigned int total = 0;
unsigned long flags;
size_t i;

len /= sizeof(struct rds_info_message);
Expand All @@ -389,7 +390,7 @@ static void rds_conn_message_info(struct socket *sock, unsigned int len,
else
list = &conn->c_retrans;

spin_lock(&conn->c_lock);
spin_lock_irqsave(&conn->c_lock, flags);

/* XXX too lazy to maintain counts.. */
list_for_each_entry(rm, list, m_conn_item) {
Expand All @@ -400,7 +401,7 @@ static void rds_conn_message_info(struct socket *sock, unsigned int len,
conn->c_faddr, 0);
}

spin_unlock(&conn->c_lock);
spin_unlock_irqrestore(&conn->c_lock, flags);
}
}
rcu_read_unlock();
Expand Down

0 comments on commit 5b3f694

Please sign in to comment.