Skip to content

Commit

Permalink
rds:Remove unnecessary ib_ring unalloc
Browse files Browse the repository at this point in the history
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 <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhu Yanjun authored and David S. Miller committed Feb 17, 2017
1 parent 3b47352 commit d2c5829
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/rds/ib_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d2c5829

Please sign in to comment.