If we make the requirement that the ib_drain_rq() caller must consume all completions for all QPs attached to an SRQ if they are outstanding, then I think we can modify ib_drain_rq() to post the drain recv WR to the SRQ. It should work, right?
That won't work because it won't FLUSH (SRQ is stateless and does not FLUSH errors).
At least the ib_srpt driver already guarantees that no further receive completions will be generated before ib_destroy_qp() is called. But posting an additional receive WR on the SRQ from inside ib_drain_rq() shouldn't hurt.
It doesn't have any meaning either... -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html