public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* flush_tlb_all in vmalloc_area_pages
@ 2001-09-07 14:56 Andrea Arcangeli
  2001-09-20 21:26 ` David S. Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Andrea Arcangeli @ 2001-09-07 14:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: David S. Miller

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-20 22:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-07 14:56 flush_tlb_all in vmalloc_area_pages Andrea Arcangeli
2001-09-20 21:26 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox