public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Garik E <kiragon@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: stale POSIX flock
Date: Tue, 28 Dec 2004 20:18:03 +0200	[thread overview]
Message-ID: <d4cc500a04122810186b7457eb@mail.gmail.com> (raw)

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

             reply	other threads:[~2004-12-28 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28 18:18 Garik E [this message]
2004-12-28 22:28 ` stale POSIX flock Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4cc500a04122810186b7457eb@mail.gmail.com \
    --to=kiragon@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox