[openib-general] [PATCH] ib_cancel_mad API
Sean Hefty
sean.hefty at intel.com
Wed Sep 29 22:21:30 PDT 2004
>Returning -EBUSY from ib_cancel requires the caller to block until the send
>handler is invoked. This in turn means that there needs to be code so that
>the send handler can wakeup the canceling thread once the send is complete.
>I don't see the difference between such synchronization requirements to the
>client and reference counting.
Note that returning -EBUSY from ib_cancel_mad would only indicate that a
callback *might* be invoked. It could have already been called, which leads
me to think that no return value would be better than one that a client
tries to use.
Also, MAD agents are registered per port, not per HCA, since an agent is
tied to a specific QP.
More information about the general
mailing list