From: Mark Hemment <markhe@veritas.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: MOLNAR Ingo <mingo@chiara.elte.hu>,
Andrea Arcangeli <andrea@suse.de>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] copy_from_high_bh
Date: Sun, 8 Jul 2001 19:26:01 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.33.0107081918350.9756-100000@alloc.wat.veritas.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0107081102410.7044-100000@penguin.transmeta.com>
On Sun, 8 Jul 2001, Linus Torvalds wrote:
> On Sun, 8 Jul 2001 markhe@veritas.com wrote:
> >
> > mm/highmem.c/copy_from_high_bh() blocks interrupts while copying "down"
> > to a bounce buffer, for writing.
> > This function is only ever called from create_bounce() (which cannot
> > be called from an interrupt context - it may block), and the kmap
> > 'KM_BOUNCE_WRITE' is only used in copy_from_high_bh().
>
> If so it's not just the interrupt disable that is unnecessary, the
> "kmap_atomic()" should also be just a plain "kmap()", I think.
That might eat through kmap()'s virtual window too quickly.
I did think about adding a test to see if the page was already mapped,
and falling back to kmap_atomic() if it isn't. That should give the best
of both worlds?
Mark
next parent reply other threads:[~2001-07-08 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.33.0107081102410.7044-100000@penguin.transmeta.com>
2001-07-08 18:26 ` Mark Hemment [this message]
2001-07-08 23:33 ` Andrea Arcangeli
2001-07-08 15:04 markhe
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=Pine.LNX.4.33.0107081918350.9756-100000@alloc.wat.veritas.com \
--to=markhe@veritas.com \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@chiara.elte.hu \
--cc=torvalds@transmeta.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®