From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Peter Staubach <staubach@redhat.com>
Cc: Kenny Simpson <theonetruekenny@yahoo.com>, linux-kernel@vger.kernel.org
Subject: Re: another nfs puzzle
Date: Wed, 07 Dec 2005 09:34:22 -0500 [thread overview]
Message-ID: <1133966063.27373.29.camel@lade.trondhjem.org> (raw)
In-Reply-To: <4396EF50.30201@redhat.com>
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
next prev parent reply other threads:[~2005-12-07 14:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-06 22:04 Kenny Simpson
2005-12-07 3:24 ` Trond Myklebust
2005-12-07 14:50 ` Kenny Simpson
2005-12-07 14:01 ` Peter Staubach
2005-12-07 14:11 ` Trond Myklebust
2005-12-07 14:18 ` Peter Staubach
2005-12-07 14:34 ` Trond Myklebust [this message]
2005-12-07 15:34 ` Peter Staubach
2005-12-07 15:41 ` Trond Myklebust
2005-12-07 15:56 ` Peter Staubach
2005-12-07 16:09 ` Trond Myklebust
2005-12-07 16:39 ` Peter Staubach
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=1133966063.27373.29.camel@lade.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=linux-kernel@vger.kernel.org \
--cc=staubach@redhat.com \
--cc=theonetruekenny@yahoo.com \
/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
all inboxes | Powered by JetHome®