Re: Kernel deferring driver 'close' call: workaround?

Alan Cox
2011-01-26T13:16:45Z

> 'strace' shows that the 'close' succeeds, but the driver debug output
> shows that the driver close/release (step 2) is not called before the
> next open (step 3), so the open fails.

I imagine the user has a bug in their app. The close method is called on
the final close of the handle. That means if for example you do something
like fork off a child process and forget to close the handle then it
won't actually close down until the final user closes it.

Alan