Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327589
b: refs/heads/master
c: bfdc587
h: refs/heads/master
i:
  327587: 21fd5e9
v: v3
  • Loading branch information
Ying Xue authored and David S. Miller committed Aug 23, 2012
1 parent c7e56cb commit f3f7ed0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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: 6b923cb7188d46905f43fa84210c4c3e5f9cd8fb
refs/heads/master: bfdc587c5af4ff155cf702b972e8fcd66d77d5f2
4 changes: 2 additions & 2 deletions trunk/net/rds/tcp_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void rds_tcp_state_change(struct sock *sk)
struct rds_connection *conn;
struct rds_tcp_connection *tc;

read_lock_bh(&sk->sk_callback_lock);
read_lock(&sk->sk_callback_lock);
conn = sk->sk_user_data;
if (!conn) {
state_change = sk->sk_state_change;
Expand All @@ -68,7 +68,7 @@ void rds_tcp_state_change(struct sock *sk)
break;
}
out:
read_unlock_bh(&sk->sk_callback_lock);
read_unlock(&sk->sk_callback_lock);
state_change(sk);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/rds/tcp_listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void rds_tcp_listen_data_ready(struct sock *sk, int bytes)

rdsdebug("listen data ready sk %p\n", sk);

read_lock_bh(&sk->sk_callback_lock);
read_lock(&sk->sk_callback_lock);
ready = sk->sk_user_data;
if (!ready) { /* check for teardown race */
ready = sk->sk_data_ready;
Expand All @@ -131,7 +131,7 @@ void rds_tcp_listen_data_ready(struct sock *sk, int bytes)
queue_work(rds_wq, &rds_tcp_listen_work);

out:
read_unlock_bh(&sk->sk_callback_lock);
read_unlock(&sk->sk_callback_lock);
ready(sk, bytes);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/rds/tcp_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void rds_tcp_data_ready(struct sock *sk, int bytes)

rdsdebug("data ready sk %p bytes %d\n", sk, bytes);

read_lock_bh(&sk->sk_callback_lock);
read_lock(&sk->sk_callback_lock);
conn = sk->sk_user_data;
if (!conn) { /* check for teardown race */
ready = sk->sk_data_ready;
Expand All @@ -336,7 +336,7 @@ void rds_tcp_data_ready(struct sock *sk, int bytes)
if (rds_tcp_read_sock(conn, GFP_ATOMIC) == -ENOMEM)
queue_delayed_work(rds_wq, &conn->c_recv_w, 0);
out:
read_unlock_bh(&sk->sk_callback_lock);
read_unlock(&sk->sk_callback_lock);
ready(sk, bytes);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/rds/tcp_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void rds_tcp_write_space(struct sock *sk)
struct rds_connection *conn;
struct rds_tcp_connection *tc;

read_lock_bh(&sk->sk_callback_lock);
read_lock(&sk->sk_callback_lock);
conn = sk->sk_user_data;
if (!conn) {
write_space = sk->sk_write_space;
Expand All @@ -194,7 +194,7 @@ void rds_tcp_write_space(struct sock *sk)
queue_delayed_work(rds_wq, &conn->c_send_w, 0);

out:
read_unlock_bh(&sk->sk_callback_lock);
read_unlock(&sk->sk_callback_lock);

/*
* write_space is only called when data leaves tcp's send queue if
Expand Down

0 comments on commit f3f7ed0

Please sign in to comment.