Re: Problem with msync system call

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Tue Jul 23 2002 - 13:01:07 EST


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



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:44 EST