Maybe it would be best to forget the "unplugged" flag. Instead have the new "topology" spinlock protect the children[] arrays and the ->state values. This means that usbdev->state would be subject to outside change even while someone was holding usbdev->serialize, although the only change that could occur would be to USB_STATE_NOTATTACHED.
Sounds decent. How does the patch look? :)
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel