From: Andrew Morton <akpm@digeo.com>
To: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: get_user_pages rewrite (completed, updated for 2.4.46)
Date: Fri, 08 Nov 2002 14:44:08 -0800 [thread overview]
Message-ID: <3DCC3E38.29B0ABEF@digeo.com> (raw)
In-Reply-To: 20021107110840.P659@nightmaster.csn.tu-chemnitz.de
Ingo Oeser wrote:
>
> Hi Andrew,
>
> now I have implemented the big get_user_pages rewrite.
/* &custom_page_walker - A custom page walk handler for walk_user_pages().
* vma: The vma we walk pages of.
* page: The page we found or an %ERR_PTR() value
* virt_addr: The virtual address we are at while walking.
* customdata: Anything you would like to pass additionally.
*
* Returns:
* Negative values -> ERRNO values.
* 0 -> continue page walking.
* 1 -> abort page walking.
*
* If this functions gets a page, for which %IS_ERR(@page) is true, than it
* should do it's cleanup of customdata and return -PTR_ERR(@page).
*
* This function is called with @vma->vm_mm->page_table_lock held,
* if IS_ERR(@vma) is not true.
*
* But if IS_ERR(@vma) is true, IS_ERR(@page) is also true, since if we have no
* vma, then we also have no user space page.
*
* If it returns a negative value, then the page_table_lock must be dropped
* by this function, if it is held.
*/
This locking is rather awkward. Why is it necessary, and can it
be simplified??
wrt the removal of the vmas arg to get_user_pages(): I assume this
was because none of the multipage callers were using it?
The patches would be easier to follow if things were sequenced a
little differently: lose the intermediate steps. Or just roll
the whole thing into a single patch, really. I don't think there
are any intermediate steps in this one?
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@digeo.com>
To: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: get_user_pages rewrite (completed, updated for 2.4.46)
Date: Fri, 08 Nov 2002 14:44:08 -0800 [thread overview]
Message-ID: <3DCC3E38.29B0ABEF@digeo.com> (raw)
In-Reply-To: 20021107110840.P659@nightmaster.csn.tu-chemnitz.de
Ingo Oeser wrote:
>
> Hi Andrew,
>
> now I have implemented the big get_user_pages rewrite.
/* &custom_page_walker - A custom page walk handler for walk_user_pages().
* vma: The vma we walk pages of.
* page: The page we found or an %ERR_PTR() value
* virt_addr: The virtual address we are at while walking.
* customdata: Anything you would like to pass additionally.
*
* Returns:
* Negative values -> ERRNO values.
* 0 -> continue page walking.
* 1 -> abort page walking.
*
* If this functions gets a page, for which %IS_ERR(@page) is true, than it
* should do it's cleanup of customdata and return -PTR_ERR(@page).
*
* This function is called with @vma->vm_mm->page_table_lock held,
* if IS_ERR(@vma) is not true.
*
* But if IS_ERR(@vma) is true, IS_ERR(@page) is also true, since if we have no
* vma, then we also have no user space page.
*
* If it returns a negative value, then the page_table_lock must be dropped
* by this function, if it is held.
*/
This locking is rather awkward. Why is it necessary, and can it
be simplified??
wrt the removal of the vmas arg to get_user_pages(): I assume this
was because none of the multipage callers were using it?
The patches would be easier to follow if things were sequenced a
little differently: lose the intermediate steps. Or just roll
the whole thing into a single patch, really. I don't think there
are any intermediate steps in this one?
--
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/
next prev parent reply other threads:[~2002-11-08 22:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-07 10:08 get_user_pages rewrite (completed, updated for 2.4.46) Ingo Oeser
2002-11-07 11:38 ` William Lee Irwin III
2002-11-07 11:38 ` William Lee Irwin III
[not found] ` <20021107135747.A594@rotuma.informatik.tu-chemnitz.de>
[not found] ` <20021107125955.GK19821@holomorphy.com>
2002-11-07 22:13 ` Ingo Oeser
2002-11-07 22:13 ` Ingo Oeser
2002-11-08 22:44 ` Andrew Morton [this message]
2002-11-08 22:44 ` Andrew Morton
2002-11-09 17:52 ` [RFC PATCH] " Ingo Oeser
2002-11-09 22:41 ` William Lee Irwin III
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=3DCC3E38.29B0ABEF@digeo.com \
--to=akpm@digeo.com \
--cc=ingo.oeser@informatik.tu-chemnitz.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.