[ofw] question on use of ib_put_mad

Fab Tillier ftillier at windows.microsoft.com
Mon May 4 15:58:06 PDT 2009


> When must a user return all MADs to IBAL by calling ib_put_mad()?  The
> handle to the mad pool is returned from get_spl_qp(), which makes me
> think that all mads must be returned before calling destroy_qp().

The MAD pool has a reference taken out on it for each mad taken out of the pool.  So the pool won't go away until all MADs have been returned.

I'm not sure I understand the synchronization issue you're seeing.

-Fab



More information about the ofw mailing list