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

From: Alan Cox
Date: Wed Jan 26 2011 - 08:16:49 EST

> '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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at