From: Paul Mundt <lethal@linux-sh.org>
To: linux-kernel@vger.kernel.org
Subject: vm_operations_struct sync/unmap replacements?
Date: Fri, 15 Aug 2003 15:42:01 -0400 [thread overview]
Message-ID: <20030815194201.GA9787@linux-sh.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]
This particular issue seems to have been raised before (at least in the unmap
case) according to google, but there doesn't seem to be any obvious resolution
that I've been able to find.
In short, we need (or rather, want) both sync and unmap for a store queue
implementation for sh. The main requirement is manually remapping special
virtual addresses that we know ahead of time against a phys addr handed off
by mmap(). Writes to the remapped area subsequently need to be flushed from
the queues (which would work quite nicely from msync()). Looking through
mm/msync.c it seems that fsync() is the only candidate for a driver callback,
which unfortunately isn't quite as nice as the old sync() where both the
size and the base could be specified directly.
Also, since allocations are tracked in a list, the unmap() functionality would
be nice to have, as it provides us with a much saner method for cleaning up
this stuff. The only other option I see here is to do this at VMA close time,
which can potentially leave us with stale entries for quite awhile, and also
leaves us with the overhead of linearly searching the list and cleaning up
after the allocations.
It seems that both of these were removed around 2.4-test time, since apparently
there weren't any users at the time. Is there any objection to adding these
back in for 2.6? Does anyone have any suggestions for any useful workarounds
for getting the same sort of functionality without having to resort to endless
ioctl stupidity?
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2003-08-15 19:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030815194201.GA9787@linux-sh.org \
--to=lethal@linux-sh.org \
--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