Re: GFS

From: Pekka J Enberg
Date: Wed Aug 10 2005 - 02:31:23 EST


On Tue, Aug 09, 2005 at 05:49:43PM +0300, Pekka Enberg wrote:
> In addition, the vma walk will become an unmaintainable mess as soon as
> someone introduces another mmap() capable fs that needs similar locking.

Christoph Hellwig writes:
We already have OCFS2 in -mm that does similar things. I think we need
to solve this in common code before either of them can be merged.

It seems to me that the distributed locks must be acquired in ->nopage anyway to solve the problem with memcpy() between two mmap'd regions. One possible solution would be for the lock manager to detect deadlocks and break some locks accordingly. Don't know how well that would mix with ->nopage though...

Pekka

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