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:
3b47352
)
rds:Remove unnecessary ib_ring unalloc
author
Zhu Yanjun
<
[email protected]
>
Fri, 17 Feb 2017 09:16:22 +0000
(
04:16
-0500)
committer
David S. Miller
<
[email protected]
>
Fri, 17 Feb 2017 20:19:51 +0000
(15:19 -0500)
In the function rds_ib_xmit_atomic, ib_ring is not allocated
successfully. As such, it is not necessary to unalloc it.
Cc: Joe Jin <
[email protected]
>
Cc: Junxiao Bi <
[email protected]
>
Signed-off-by: Zhu Yanjun <
[email protected]
>
Acked-by: Santosh Shilimkar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rds/ib_send.c
patch
|
blob
|
history
diff --git
a/net/rds/ib_send.c
b/net/rds/ib_send.c
index 5e72de10c484d5b080f0e583be5a309004f35fc2..6ab39dbcca0197339cb8c2e9ec5676a778c4d23e 100644
(file)
--- a/
net/rds/ib_send.c
+++ b/
net/rds/ib_send.c
@@
-770,7
+770,6
@@
int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op)
work_alloc = rds_ib_ring_alloc(&ic->i_send_ring, 1, &pos);
if (work_alloc != 1) {
- rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
rds_ib_stats_inc(s_ib_tx_ring_full);
ret = -ENOMEM;
goto out;