Re: [PATCH] i386: fix vmalloc_sync_all() for Xen

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Friday, June 20, 2008 - 9:10 am

Jan Beulich wrote:

Yep.  I think the first step should be to simplify the code to remove 
all the insync/start optimisations and just implement it in a very 
straightforward way.  I can't see any way this code could be even 
slightly performance critical.


Uh, I guess that's one way of putting it.  The other is that it tests 
for an obscure condition that's indirectly related to something that 
might indicate a bug if the code were written differently.  A good 
BUG_ON/assert acts as documentation because it tells the reader about 
the expected logical state at that point, but it needs to be expressed 
in terms which are directly relevant to the algorithm in question.

    J

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] i386: fix vmalloc_sync_all() for Xen, Jan Beulich, (Wed Jun 18, 4:40 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jeremy Fitzhardinge, (Wed Jun 18, 1:01 pm)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jan Beulich, (Thu Jun 19, 2:43 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Ingo Molnar, (Thu Jun 19, 5:27 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jeremy Fitzhardinge, (Thu Jun 19, 7:45 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jeremy Fitzhardinge, (Thu Jun 19, 8:28 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jan Beulich, (Thu Jun 19, 9:01 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jeremy Fitzhardinge, (Thu Jun 19, 11:16 am)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jan Beulich, (Thu Jun 19, 11:58 pm)
Re: [PATCH] i386: fix vmalloc_sync_all() for Xen, Jeremy Fitzhardinge, (Fri Jun 20, 9:10 am)