Re: 2.0.33 threads program not releasing locks

Bill Hawes (whawes@star.net)
Sat, 28 Mar 1998 18:32:02 -0500


Joseph H. Buehler wrote:
>
> I am running a threaded program under 2.0.33 (redhat 5.0 with a custom
> kernel). Sometimes file locks are not released by the kernel when the
> threads are all dead.
>
> I believe this has been reported before. Is there is a kernel patch
> available?

The problems with releasing locks from threads has been fixed in the 2.1.xx
tree, but apparently hasn't been backported to 2.0.xx. If someone wants to work
on it, the changes are relatively minor -- the lock code was changed to use the
files_struct pointer as the "owner" value, and the close code for posix/flock
separated.

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu