On Sun, 2005-05-15 at 11:45, Michael S. Tsirkin wrote: > Hello! > opensm currently keeps multiple files open under > /sys/class/infiniband/mthca%d/ports/ > In particular, this will prevent the OS from performing device > hot-plug removal. > > In my opinion, it would be better for sm to either avoid > working directly with low-level drivers, or close the sysfs > files after reading them. > The change to close the files is probably easier to implement. > > Does this make sense to people here?
Right now, OpenIB OpenSM keeps the issm files open for the duration of its execution. This easily be could be changed to open and close these files whenever the issm bit needs changing. This should not be very frequent. Doesn't this narrow the window of hotswap occuring while the issm file is open ? If the OpenSM did not set (and clear) the issm capability mask, how would this be done in a manner (more) conducive with hotswap ? Would it be with an explicit local set PortInfo MAD ? -- Hal _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
