> > AFAIK release is called by fput only if the usage counter goes to zero, > > yet open is called on every open syscall. So if you open the same device > > more than once, you should have more calls to open than to release. > > Actually, it looks like open() will only be called once, and then > release() will only be called once. So everything is ok with the driver > right now :)
What makes the open guarantee here ? The base VFS rule is open each open of a new handle (not the same as each user of a handle across eg fork), flush each close of a handle, release last close of a handle. Furthermore its up to the device layer to remember that release and open can occur in parallel on different processors (just to liven life up) _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel