RDS: Do not BUG() on error returned from ib_post_send
BUGging on a runtime error code should be avoided. This patch also eliminates all other BUG()s that have no real reason to exist. Signed-off-by: Andy Grover <andy.grover@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
87faf3ccf1
commit
735f61e626
@@ -616,8 +616,7 @@ int rds_iw_xmit(struct rds_connection *conn, struct rds_message *rm,
|
||||
rds_iw_send_grab_credits(ic, 0, &posted, 1, RDS_MAX_ADV_CREDIT - adv_credits);
|
||||
adv_credits += posted;
|
||||
BUG_ON(adv_credits > 255);
|
||||
} else if (ic->i_rm != rm)
|
||||
BUG();
|
||||
}
|
||||
|
||||
send = &ic->i_sends[pos];
|
||||
first = send;
|
||||
|
Reference in New Issue
Block a user