linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM TOPIC][ATTEND] How to fix direct-io vs fork issue
@ 2010-04-01  7:41 KOSAKI Motohiro
  2010-04-01 17:23 ` [Lsf10-pc] " Andrea Arcangeli
  0 siblings, 1 reply; 2+ messages in thread
From: KOSAKI Motohiro @ 2010-04-01  7:41 UTC (permalink / raw)
  To: linux-mm, lsf10-pc; +Cc: kosaki.motohiro, Nick Piggin

Hi

I would like to ask about one difficult problem about people.
currently, direct-io implementation has big sick about VM interaction.
it assume get_user_pages() can pin the target pages in page's mm. but 
it doesn't. fork and cow might replace the relationship between task's mm
and pages. therefore cuncurrent directio and fork can corrupt the process's
data.

There was two proposal in past day. 1) introduce new page flags 2)
introduce new lock. unfortunately both proposal got strong complaint
from other developers. then, we still have this issue.

I don't have clever idea. I hope discuss how to fix or give it up.


thanks to linus. his recent read_pagemap discussion restre my memory that
I need post this mail.



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2010-04-01 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-01  7:41 [LSF/MM TOPIC][ATTEND] How to fix direct-io vs fork issue KOSAKI Motohiro
2010-04-01 17:23 ` [Lsf10-pc] " Andrea Arcangeli

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