public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Gregory Giguashvili <Gregoryg@ParadigmGeo.com>
Cc: Andi Kleen <ak@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: Problem with msync system call
Date: 23 Jul 2002 20:01:07 +0200	[thread overview]
Message-ID: <shsheiql3x8.fsf@charged.uio.no> (raw)
In-Reply-To: <p73fzyatlsi.fsf@oldwotan.suse.de>

>>>>> " " == Andi Kleen <ak@suse.de> writes:

     > Do a F_SETFL lock/unlock on the file That should act as a full
     > NFS write barrier and flush all buffers. Best is if you
     > synchronize between the various writers with the full lock.

Note: This will not work for files that are in the process of being
mmap()ed. In order to make it all work, you have to munmap() first,
then lock, then mmap().

This is due to limitations in the VM which won't allow anyone to
invalidate a mapping that is in use.

Cheers,
  Trond

  reply	other threads:[~2002-07-23 17:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <EE83E551E08D1D43AD52D50B9F511092E1149F@ntserver2.suse.lists.linux.kernel>
2002-07-23 17:07 ` Problem with msync system call Andi Kleen
2002-07-23 18:01   ` Trond Myklebust [this message]
2002-07-23 19:36 Gregory Giguashvili
  -- strict thread matches above, loose matches on Subject: below --
2002-07-23 19:04 Gregory Giguashvili
2002-07-23 18:45 Gregory Giguashvili
2002-07-23 18:06 ` Andi Kleen
2002-07-23 18:00 Gregory Giguashvili
2002-07-23 16:58 Gregory Giguashvili
2002-07-23 16:31 ` Dr. Michael Weller

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=shsheiql3x8.fsf@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=Gregoryg@ParadigmGeo.com \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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