Hello Sagi, The srp_send_done() function accesses the ch->free_tx list without locking. This is safe because all existing ib_process_cq_direct(ch->send_cq, ...) calls occur while holding ch->lock. The approach suggested above breaks that assumption.
But srp_send_done won't get invoked for the ib_drain_qp post send because ->done doesn't point to it, Am I missing something? -- 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