login
Header Space

 
 

Re: [patch 01/10] emm: mm_lock: Lock a process against reclaim

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Andrea Arcangeli <andrea@...>, Robin Holt <holt@...>, <kvm-devel@...>, Peter Zijlstra <a.p.zijlstra@...>, <general@...>, <steiner@...>, <linux-kernel@...>, <linux-mm@...>
Date: Friday, April 4, 2008 - 7:12 pm

Christoph Lameter wrote:
I think you can break this if() down a bit:

			if (!(vma->vm_file && vma->vm_file->f_mapping))
				continue;



So this is an O(n^2) algorithm to take the i_mmap_locks from low to high 
order?  A comment would be nice.  And O(n^2)?  Ouch.  How often is it 
called?

And is it necessary to mush lock and unlock together?  Unlock ordering 
doesn't matter, so you should just be able to have a much simpler loop, no?





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

Messages in current thread:
[patch 01/10] emm: mm_lock: Lock a process against reclaim, Christoph Lameter, (Fri Apr 4, 6:30 pm)
Re: [patch 01/10] emm: mm_lock: Lock a process against reclaim, Jeremy Fitzhardinge, (Fri Apr 4, 7:12 pm)
Re: [patch 01/10] emm: mm_lock: Lock a process against reclaim, Jeremy Fitzhardinge, (Mon Apr 7, 3:02 pm)
speck-geostationary