From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: Weimin Tchen <wtchen@giganet.com>
Cc: linux-mm@kvack.org
Subject: Re: questions on having a driver pin user memory for DMA
Date: Fri, 21 Apr 2000 11:20:46 -0700 (PDT) [thread overview]
Message-ID: <200004211820.LAA35028@google.engr.sgi.com> (raw)
In-Reply-To: <38FF961B.ACF08696@giganet.com> from "Weimin Tchen" at Apr 20, 2000 07:43:23 PM
Just wanted to point out that I do have a patch for the fork/cow problem
for 2.3 (relevant only for threaded programs), and have talked to Linus
about this. We will see if he agrees to take it in. Another thing is that
there are races in map_user_kiobuf racing with kswapd, my patch has fixes
for that too.
What I haven't started looking at yet (acceptance of the above patch is
a prerequisite) is how an user program can do a system call that will
invoke map_user_kiobuf(), and then return from the call with the pages
staying pinned. (For now, the best alternative is to use mlock() for
such long lived pinning. I am not sure if anything more is needed here,
but would have to look at the fork path handling to decide). No, I
an not going to be dragged into a discussion about this right now,
this is just an FYI if you do have a need for this support.
Oh, btw, stay away from PG_locked for your network driver pinning method,
hangs will happen if your buffer is mapped to file pages.
Kanoj
--
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.eu.org/Linux-MM/
prev parent reply other threads:[~2000-04-21 18:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-19 23:02 Weimin Tchen
2000-04-20 6:39 ` Eric W. Biederman
2000-04-20 9:20 ` Ingo Oeser
2000-04-20 12:30 ` Stephen C. Tweedie
2000-04-20 12:27 ` Stephen C. Tweedie
2000-04-20 23:43 ` Weimin Tchen
2000-04-21 18:20 ` Kanoj Sarcar [this message]
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=200004211820.LAA35028@google.engr.sgi.com \
--to=kanoj@google.engr.sgi.com \
--cc=linux-mm@kvack.org \
--cc=wtchen@giganet.com \
/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