> @@ -884,6 +884,13 @@ int main(int argc, char *argv[])
>       if (ctx.use_event)
>               ibv_ack_cq_events(ctx.recv_cq, num_cq_events);
> 
> +     /* Process should wait before closing its resources to make sure
> +       * latest daemon's response sent via its target QP destined to an XSRQ
> +       * created by another client won't be lost.
> +       * Failure to do so will cause the client to wait for that sent message
> forever.
> +       * See comment on pp_post_send.
> +     */
> +     sleep(1);

I dislike adding sleep calls into code.  Isn't there a more robust way to 
handle this?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to