Re: Oops NFS Locking in 2.4.x

Olivier Molteni (olivier@molteni.net)
Mon, 10 Sep 2001 21:56:49 +0200


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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/