Re: another nfs puzzle

From: Trond Myklebust
Date: Wed Dec 07 2005 - 09:34:24 EST


On Wed, 2005-12-07 at 09:18 -0500, Peter Staubach wrote:
> >In this context it doesn't matter whether or not the you use the same
> >file descriptor. The problem is the same if my process opens the file
> >for O_DIRECT and then your process open it for normal I/O, and mmaps it.
> >
>
> Yup, same problem. Why is this allowed? Does it really work correctly?

Assuming that the processes have _some_ method of synchronisation, then
I cannot see why it shouldn't be workable. Come to think of it, it might
even be possible to use O_DIRECT to provide that synchronisation (use
O_DIRECT to set a "lock" on the page, then modify it using mmap).

Whether or not there are people out there that actually _want_ to do
this is a different matter.

Cheers,
Trond

-
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/