Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193590
b: refs/heads/master
c: 048c15e
h: refs/heads/master
v: v3
  • Loading branch information
Tina Yang authored and David S. Miller committed Mar 17, 2010
1 parent 7e4b510 commit 852bed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 2e7b3b994529d4760231a45a6b88950187bda877
refs/heads/master: 048c15e641289d902f7ef9f1241068d8045e210c
5 changes: 2 additions & 3 deletions trunk/net/rds/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,14 +533,13 @@ void rds_send_remove_from_sock(struct list_head *messages, int status)

if (rs != rm->m_rs) {
if (rs) {
spin_unlock(&rs->rs_lock);
rds_wake_sk_sleep(rs);
sock_put(rds_rs_to_sk(rs));
}
rs = rm->m_rs;
spin_lock(&rs->rs_lock);
sock_hold(rds_rs_to_sk(rs));
}
spin_lock(&rs->rs_lock);

if (test_and_clear_bit(RDS_MSG_ON_SOCK, &rm->m_flags)) {
struct rds_rdma_op *ro = rm->m_rdma_op;
Expand All @@ -560,14 +559,14 @@ void rds_send_remove_from_sock(struct list_head *messages, int status)
rds_message_put(rm);
rm->m_rs = NULL;
}
spin_unlock(&rs->rs_lock);

unlock_and_drop:
spin_unlock(&rm->m_rs_lock);
rds_message_put(rm);
}

if (rs) {
spin_unlock(&rs->rs_lock);
rds_wake_sk_sleep(rs);
sock_put(rds_rs_to_sk(rs));
}
Expand Down

0 comments on commit 852bed5

Please sign in to comment.