Skip to content

Commit e32b4a7

Browse files
author
Andy Grover
committed
RDS/IB: Do not wait for send ring to be empty on conn shutdown
Now that we are signaling send completions much less, we are likely to have dirty entries in the send queue when the connection is shut down (on rmmod, for example.) These are cleaned up a little further down in conn_shutdown, but if we wait on the ring_empty_wait for them, it'll never happen, and we hand on unload. Signed-off-by: Andy Grover <andy.grover@oracle.com>
1 parent ff3d7d3 commit e32b4a7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎net/rds/ib_cm.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,11 @@ void rds_ib_conn_shutdown(struct rds_connection *conn)
620620
ic->i_cm_id, err);
621621
}
622622

623+
/*
624+
* Don't wait for the send ring to be empty -- there may be completed
625+
* non-signaled entries sitting on there. We unmap these below.
626+
*/
623627
wait_event(rds_ib_ring_empty_wait,
624-
rds_ib_ring_empty(&ic->i_send_ring) &&
625628
rds_ib_ring_empty(&ic->i_recv_ring));
626629

627630
if (ic->i_send_hdrs)

0 commit comments

Comments
 (0)