> If I interpret the source code in drivers/infiniband/core/cm.c correctly > ib_destroy_cm_id() can return before an ongoing cm_id callback has > finished. Is this on purpose ? If not, isn't there a > flush_workqueue(cm.wq) call missing in cm_destroy_id() ?
ib_destroy_cm_id() will block while there's an outstanding reference held on the id. We'll hold a reference on an id if we have any MAD outstanding against it (which can result in a send callback) or during the processing of a receive. - Sean -- 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