From: Andrea Arcangeli <andrea@suse.de>
To: linux-kernel@vger.kernel.org
Cc: "David S. Miller" <davem@redhat.com>
Subject: flush_tlb_all in vmalloc_area_pages
Date: Fri, 7 Sep 2001 16:56:12 +0200 [thread overview]
Message-ID: <20010907165612.T11329@athlon.random> (raw)
can somebody see a good reason for flushing the tlb in vmalloc? We must
do that in vfree but doing it in vmalloc is just a waste of time, we are
guaranteed that's an unmapped space before we start setting up the
pagetables so such address space cannot be cached in any tlb in first
place.
For the flush_cache_all for the virtually indexed caches should be the
same issue in theory (at least the kmap logic only needs to flush the
caches before the unmapping [not before the mapping] too)
Am I missing something, Dave?
--- 2.4.10pre4aa1/mm/vmalloc.c.~1~ Sat May 26 04:03:50 2001
+++ 2.4.10pre4aa1/mm/vmalloc.c Fri Sep 7 16:53:41 2001
@@ -144,7 +144,6 @@
int ret;
dir = pgd_offset_k(address);
- flush_cache_all();
spin_lock(&init_mm.page_table_lock);
do {
pmd_t *pmd;
@@ -164,7 +163,6 @@
ret = 0;
} while (address && (address < end));
spin_unlock(&init_mm.page_table_lock);
- flush_tlb_all();
return ret;
}
Andrea
next reply other threads:[~2001-09-07 14:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-07 14:56 Andrea Arcangeli [this message]
2001-09-20 21:26 ` flush_tlb_all in vmalloc_area_pages David S. Miller
2001-09-20 22:25 ` Andrea Arcangeli
2001-09-20 22:29 ` David S. Miller
2001-09-20 22:38 ` Andrea Arcangeli
2001-09-20 22:52 ` Andrea Arcangeli
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=20010907165612.T11329@athlon.random \
--to=andrea@suse.de \
--cc=davem@redhat.com \
--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