From: Rogier Wolff <R.E.Wolff@BitWizard.nl>
To: Anton Salikhmetov <salikhmetov@gmail.com>
Cc: Rogier Wolff <R.E.Wolff@BitWizard.nl>, linux-kernel@vger.kernel.org
Subject: Re: mtime updates for mmapped files.
Date: Wed, 16 Jan 2008 13:30:52 +0100 [thread overview]
Message-ID: <20080116123052.GB2451@bitwizard.nl> (raw)
In-Reply-To: <4df4ef0c0801160322j31645554oa6faec5cca64509d@mail.gmail.com>
On Wed, Jan 16, 2008 at 02:22:49PM +0300, Anton Salikhmetov wrote:
> Unfortunately, this issue has not been fully fixed yet.
>
> My last attempt (http://lkml.org/lkml/2008/1/15/202) to solve
> this problem has a couple of drawbacks:
>
> 1) calling a possibly sleeping function from atomic context -
> I've already corrected this;
>
> 2) there's a very special case with retouching the memory-mapped data
> after a call to msync() with MS_ASYNC.
> I'm still working on the latter case, but I guess that I have found
> a solution.
> If you badly need a quick fix, I can send my working unreleased
> patch to you. I reckon that your particular problem will be fixed
> by this patch. Let me know if you want that.
No need. Thanks for the offer.
> However, if your application calls msync() with the MS_ASYNC flag,
> it's better to wait a little bit more - I'll release the next version
> of my solution
> shortly.
My application calls "exit" (*). My workaround was to type
touch <destfile>
to get things to work. In my situation, I was worried about the more
general case, and not really about my personal situation.
I could integrate the "touch <destfile>" into my application, but I
think it is the OS's duty to do this for me. This would be the easiest
non-manual fix for me.
Roger.
(*) So please check that:
- mmap file
- change mmapped area
- exit
also works (modifies the timestamp).
--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement.
Does it sit on the couch all day? Is it unemployed? Please be specific!
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
prev parent reply other threads:[~2008-01-16 12:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 9:46 mtime updates for mmapped files Rogier Wolff
2008-01-16 10:03 ` Dave Young
2008-01-16 10:11 ` Miklos Szeredi
2008-01-16 10:13 ` Valdis.Kletnieks
2008-01-16 11:22 ` Anton Salikhmetov
2008-01-16 12:30 ` Rogier Wolff [this message]
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=20080116123052.GB2451@bitwizard.nl \
--to=r.e.wolff@bitwizard.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=salikhmetov@gmail.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