Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Wednesday, March 31, 2010 - 9:27 pm

On Wed, 31 Mar 2010, Matt Mackall wrote:

I would suggest you go back and read my original email once more, now that 
you realize that you had simply not understood the difference between 
physical page pinning and virtual page pinning.

Seriously.

Now that you understand why I called the code buggy, maybe you realize 
that calling the code "insane and misdesigned" is actually not overly 
rude: it's just an accurate representation of the state of the code.

And if you read the mail once more, you'll also notice that every single 
derogatory remark was about the _code_, not you.

Oh, and I did ask you for an explanation for why we shouldn't just remove 
it. There can't be all that many users. 

Because quite frankly, if you apparently want to keep the vma around, the 
code is going to get way more complex and ugly. You may be able to avoid 
some of the _worst_ crap if you require that user pointers have to always 
be u64-aligned. Yes, that's a very ugly and non-intuitive requirement for 
a read() interface, but probably better than the alternative.

Or maybe just do the double buffering, and limiting pagemap reads to 
fairly small chunks at a time.

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

Messages in current thread:
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Wed Mar 31, 10:54 am)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Wed Mar 31, 6:33 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Wed Mar 31, 7:10 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Wed Mar 31, 9:27 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Wed Mar 31, 10:54 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Wed Mar 31, 10:55 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Wed Mar 31, 11:05 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Wed Mar 31, 11:09 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Wed Mar 31, 11:34 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Thu Apr 1, 12:21 am)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Thu Apr 1, 8:10 am)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Thu Apr 1, 5:11 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Mon Apr 5, 11:48 pm)