public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* arch_flush_lazy_mmu_mode() in arch/x86/mm/highmem_32.c
@ 2008-11-17  9:08 Jan Beulich
  2008-11-17 17:53 ` Zachary Amsden
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2008-11-17  9:08 UTC (permalink / raw)
  To: Jeremy Fitzhardinge, Zachary Amsden; +Cc: linux-kernel

Commit 49f19710512c825aaea73b9207b3a848027cda1d hints at the
current solution not being the final one, yet the advertised (for 2.6.22)
change apparently never happened. However, it seems to me that
flushing a potentially huge (it terms of time to completion) batch
asynchronously is no really good idea. Instead, I'd think that adding to
the batch should be prevented in asynchronous contexts altogether, or
things should properly nest. As a positive side effect, disabling interrupts
in the batch handling - in particular around the submission of the batch -
could also be avoided, reducing interrupt latency (perhaps significantly
in some case).

Likewise I would think that the flush out of vmalloc_sync_one() isn't
appropriate, and it should rather be avoided for the set_pmd() there to
get into the batching code altogether.

(Background to this: After adding lazy mmu mode support in our forward
ported tree, we've actually been hit by these calls out of kmap_...(), as
originally I didn't pay much attention to these and didn't care to synchronize
batch addition and flushing with asynchronous operations.)

Jan


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

end of thread, other threads:[~2008-11-18 18:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17  9:08 arch_flush_lazy_mmu_mode() in arch/x86/mm/highmem_32.c Jan Beulich
2008-11-17 17:53 ` Zachary Amsden
2008-11-17 18:40   ` Jeremy Fitzhardinge
2008-11-17 19:54     ` Zachary Amsden
2008-11-18  8:03     ` Jan Beulich
2008-11-18 17:01       ` Jeremy Fitzhardinge
2008-11-18 17:28         ` Jan Beulich
2008-11-18 18:00           ` Jeremy Fitzhardinge
2008-11-18 18:06           ` Zachary Amsden

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