> This seems dangerous, especially now that we have PCI_MULTITHREAD_PROBE: > nothing prevents ipath_cdev_init() from being called twice. Better to > use something like test_and_set_bit() to make sure this is done > exactly once.
Well, it needs to be refcounted, as we need to create it on first add_one and remove it on the last remove_one. If I put a spinlock around it, would that suffice? Regards, Robert. _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
