> > Hello Steve, > > > > How about creating three functions - one that drains the receive queue, > > one that drains the send queue and a third function that drains both ? > > The latter function then can call the two former functions. And since > > only one of these three functions will have a user in your patch series > > (the function that drains the RQ), how about only introducing only that > > function now and to wait with introducing the two other functions until > > these have a user ? > > That sounds reasonable. Simpler too perhaps. We'll see if anyone else > has an opinion. Another option is for ib_drain_qp() to just skip queues with IB_POLL_DIRECT CQ processing. -- 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