projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ce431
)
RDS: check for congestion updates during rds_send_xmit
author
[email protected]
<
[email protected]
>
Sat, 22 Aug 2015 22:45:27 +0000
(15:45 -0700)
committer
David S. Miller
<
[email protected]
>
Tue, 25 Aug 2015 20:35:30 +0000
(13:35 -0700)
Ensure we don't keep sending the data if the link is congested.
Reviewed-by: Ajaykumar Hotchandani <
[email protected]
>
Signed-off-by: Santosh Shilimkar <
[email protected]
>
Signed-off-by: Santosh Shilimkar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rds/send.c
patch
|
blob
|
history
diff --git
a/net/rds/send.c
b/net/rds/send.c
index 2581b8e3dbe70b70a73bac2511c75dcb1efba85f..dd901c324edf8f7d6cdb30b5dd795d6ad828d44c 100644
(file)
--- a/
net/rds/send.c
+++ b/
net/rds/send.c
@@
-411,7
+411,8
@@
over_batch:
*/
if (ret == 0) {
smp_mb();
- if (!list_empty(&conn->c_send_queue) &&
+ if ((test_bit(0, &conn->c_map_queued) ||
+ !list_empty(&conn->c_send_queue)) &&
send_gen == conn->c_send_gen) {
rds_stats_inc(s_send_lock_queue_raced);
goto restart;