From: Olivier Molteni <olivier@molteni.net>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Oops NFS Locking in 2.4.x
Date: Mon, 10 Sep 2001 21:56:49 +0200 [thread overview]
Message-ID: <3B9D1B01.53B0A391@molteni.net> (raw)
In-Reply-To: <3B9C0D36.3EA20B24@molteni.net> <shsae03fizs.fsf@charged.uio.no>
Trond Myklebust wrote:
>
> Looks like 2 processes are trying to free the same lock. The problem
> is that both processes can call filp_close() at the same
> time (by calling sys_close()).
>
> The bug boils down to:
>
> - locks_unlock_delete() assumes that the BKL (kernel_lock()) is
> sufficient to protect against *thisfl_p from disappearing
> beneath it due to some second process.
> BUT
> - The call to lock() in locks_unlock_delete() sleeps when the
> underlying filesystem is NFS, hence 2 processes can race despite
> the BKL assumption.
>
> Cheers,
> Trond
Hi,
Thank for your help !!
I'm not a developper, but I would like to try to do something about
that...
Do you think that trying to replace the sleep by an other type of waiting
(at worst looping just to test the idea) could work ?
Cheers,
Olivier.
next prev parent reply other threads:[~2001-09-10 19:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-10 0:45 Oops NFS Locking in 2.4.x Olivier Molteni
2001-09-10 10:16 ` Trond Myklebust
2001-09-10 19:56 ` Olivier Molteni [this message]
2001-09-10 21:26 ` Olivier Molteni
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=3B9D1B01.53B0A391@molteni.net \
--to=olivier@molteni.net \
--cc=linux-kernel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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