> The following patch solves a problem I'm seeing when multiple
> threads try to call ibv_get_devices at the same time.

Looks good, thanks.

> Which brings me to another issue: our code examples call non-reentrant
> dlist_for_each variants of dlist scanning routines, which will
> create strange problems for multi-threaded users who might copy this.

I was thinking recently that it would be better to just kill the dlist
use in the libibverbs API entirely.  It was a mistake to be lazy and
use the code for sysfs, because I don't think dlist is designed very
well.  Returning something like a simple singly-linked list of devices
would be better.

What do you think?

 - R.
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to