linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: linux-mm@kvack.org, lsf10-pc@lists.linuxfoundation.org
Cc: kosaki.motohiro@jp.fujitsu.com, Nick Piggin <npiggin@suse.de>
Subject: [LSF/MM TOPIC][ATTEND] How to fix direct-io vs fork issue
Date: Thu,  1 Apr 2010 16:41:21 +0900 (JST)	[thread overview]
Message-ID: <20100401154419.BE4C.A69D9226@jp.fujitsu.com> (raw)

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>

             reply	other threads:[~2010-04-01  7:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-01  7:41 KOSAKI Motohiro [this message]
2010-04-01 17:23 ` [Lsf10-pc] " Andrea Arcangeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100401154419.BE4C.A69D9226@jp.fujitsu.com \
    --to=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=lsf10-pc@lists.linuxfoundation.org \
    --cc=npiggin@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox