From: Rik van Riel <riel@surriel.com>
To: Sadanand Warrier <sadanandwarrier@gmail.com>,
Cengiz Can <cengiz@kernel.wtf>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: get_user_pages and pinning
Date: Sun, 03 Jan 2021 13:26:45 -0500 [thread overview]
Message-ID: <eec14b983baaf60e0fe6633daae6c89d4b1b6b74.camel@surriel.com> (raw)
In-Reply-To: <CADJuq2zQ2M+7Sig4FFkR2fro8vraQ6naoog6y5aN-afyurcb0g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 366 bytes --]
On Sun, 2021-01-03 at 12:54 -0500, Sadanand Warrier wrote:
>
> So the question is what should happen if the memory isn't actually
> allocated. Should get_user_pages check?
> It doesn't seem to be doing so. Can it?
If the driver needs the memory to be allocated, why not
use the FOLL_POPULATE flag when calling get_user_pages?
--
All Rights Reversed.
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2021-01-03 18:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-02 12:39 get_user_pages and pinning Sadanand Warrier
2021-01-02 13:08 ` Cengiz Can
2021-01-03 17:54 ` Sadanand Warrier
2021-01-03 18:26 ` Rik van Riel [this message]
2021-01-03 18:54 ` Sadanand Warrier
2021-01-02 13:20 ` Greg KH
2021-01-02 15:11 ` Sadanand Warrier
2021-01-03 17:58 Sadanand Warrier
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=eec14b983baaf60e0fe6633daae6c89d4b1b6b74.camel@surriel.com \
--to=riel@surriel.com \
--cc=cengiz@kernel.wtf \
--cc=kernelnewbies@kernelnewbies.org \
--cc=sadanandwarrier@gmail.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;
as well as URLs for NNTP newsgroup(s).