> ++ if (!ret) {
> ++ list_for_each_entry(t_uobj, &file->ucontext->qp_list, list) {
> ++ struct ib_qp *qp = t_uobj->object;
> ++ if (qp->xrcd && qp->xrcd == uobj->object) {
> ++ ret = -EBUSY;
> ++ break;
> ++ }
> ++ }
> ++ }
> ++ if (!ret) {
> ++ list_for_each_entry(t_uobj, &file->ucontext->srq_list, list) {
> ++ struct ib_srq *srq = t_uobj->object;
> ++ if (srq->xrcd && srq->xrcd == uobj->object) {
> ++ ret = -EBUSY;
> ++ break;
> ++ }
> ++ }
> ++ }
This is obviously pretty gross. Let me see it I can come up with a more
palatable fix in my tree.
- R.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general