stale POSIX flock
Hello,
I've got a strange bug:
POSIX lock is left in system after process termination.
After some debugging I found that filp->f_count entry at the end of sys_fctl64 function is 1(???) and subsequent call to fput releases file sturcture, but leaves POSIX lock.
I've added check for FL_POSIX flag to locks_remove_flock and the problem stoped. This bug happens very often on my environment, but user mode setup is a multi-process/multi-threaded application, so I have no clue how to reduce it to a simple testing program.
I work with enterprise linux 3, IBM xSeries345, Pentium4 3000 x2, 2GB RAM
Quoted 1 line · Garik E
I work with enterprise linux 3, IBM xSeries345, Pentium4 3000 x2, 2GB RAM
Older 2.4 has some threading problems with lock accounting. If you are seeing this with Red Hat Enterprise Linux you should raise it with your support person and/or file it in bugzilla.redhat.com/bugzilla.
Thanks
Alan