* stale POSIX flock
@ 2004-12-28 18:18 Garik E
2004-12-28 22:28 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Garik E @ 2004-12-28 18:18 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: stale POSIX flock
2004-12-28 18:18 stale POSIX flock Garik E
@ 2004-12-28 22:28 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2004-12-28 22:28 UTC (permalink / raw)
To: Garik E; +Cc: Linux Kernel Mailing List
On Maw, 2004-12-28 at 18:18, Garik E wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-28 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-28 18:18 stale POSIX flock Garik E
2004-12-28 22:28 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox