[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1487321511-28994-1-git-send-email-yanjun.zhu@oracle.com>
Date: Fri, 17 Feb 2017 03:51:51 -0500
From: Zhu Yanjun <yanjun.zhu@...cle.com>
To: santosh.shilimkar@...cle.com, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, rds-devel@....oracle.com
Subject: [PATCH 1/1] rds:Remove unnecessary ib_ring unalloc
In the function rds_ib_xmit_atomic, ib_ring is not successfully.
As such, it is not necessary to unalloc it.
Cc: Joe Jin <joe.jin@...cle.com>
Cc: Junxiao Bi <junxiao.bi@...cle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@...cle.com>
---
net/rds/ib_send.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index 84d90c9..84b34cc 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -765,7 +765,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;
--
2.7.4
Powered by blists - more mailing lists