diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-19 17:44:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-23 01:52:04 -0400 |
commit | bfdc587c5af4ff155cf702b972e8fcd66d77d5f2 (patch) | |
tree | 81bed65ce086ff013ea5b41eec17c7e1949ff0aa /net/rds/tcp_send.c | |
parent | 6b923cb7188d46905f43fa84210c4c3e5f9cd8fb (diff) |
rds: Don't disable BH on BH context
Since we have already in BH context when *_write_space(),
*_data_ready() as well as *_state_change() are called, it's
unnecessary to disable BH.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/tcp_send.c')
-rw-r--r-- | net/rds/tcp_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/tcp_send.c b/net/rds/tcp_send.c index 1b4fd68f0c7c..81cf5a4c5e40 100644 --- a/net/rds/tcp_send.c +++ b/net/rds/tcp_send.c | |||
@@ -174,7 +174,7 @@ void rds_tcp_write_space(struct sock *sk) | |||
174 | struct rds_connection *conn; | 174 | struct rds_connection *conn; |
175 | struct rds_tcp_connection *tc; | 175 | struct rds_tcp_connection *tc; |
176 | 176 | ||
177 | read_lock_bh(&sk->sk_callback_lock); | 177 | read_lock(&sk->sk_callback_lock); |
178 | conn = sk->sk_user_data; | 178 | conn = sk->sk_user_data; |
179 | if (!conn) { | 179 | if (!conn) { |
180 | write_space = sk->sk_write_space; | 180 | write_space = sk->sk_write_space; |
@@ -194,7 +194,7 @@ void rds_tcp_write_space(struct sock *sk) | |||
194 | queue_delayed_work(rds_wq, &conn->c_send_w, 0); | 194 | queue_delayed_work(rds_wq, &conn->c_send_w, 0); |
195 | 195 | ||
196 | out: | 196 | out: |
197 | read_unlock_bh(&sk->sk_callback_lock); | 197 | read_unlock(&sk->sk_callback_lock); |
198 | 198 | ||
199 | /* | 199 | /* |
200 | * write_space is only called when data leaves tcp's send queue if | 200 | * write_space is only called when data leaves tcp's send queue if |