login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
19
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Hoang-Nam Nguyen <hnguyen@...>
To: Adam Litke <agl@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linuxppc-dev@...>, Ken Chen <kenchen@...>
Subject:
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
Date: Monday, November 19, 2007 - 11:25 am
On Wednesday 07 November 2007 20:51, Adam Litke wrote:
quoted text
> > When calling get_user_pages(), a write flag is passed in by the caller to > indicate if write access is required on the faulted-in pages. Currently, > follow_hugetlb_page() ignores this flag and always faults pages for > read-only access. This can cause data corruption because a device driver > that calls get_user_pages() with write set will not expect COW faults to > occur on the returned pages. > > This patch passes the write flag down to follow_hugetlb_page() and makes > sure hugetlb_fault() is called with the right write_access parameter. > > Signed-off-by: Adam Litke <agl@us.ibm.com>
Apologize for this late response. Tested on 2.6.23 with ehca and mthca. It works like a charm for me. Thanks! Nam -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] hugetlb: follow_hugetlb_page for write access
, Adam Litke
, (Wed Nov 7, 3:51 pm)
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
, Hoang-Nam Nguyen
, (Mon Nov 19, 11:25 am)
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
, Ken Chen
, (Thu Nov 8, 4:43 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Nigel Cunningham
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Paul Mundt
Re: 2.6.22-rc4-mm2
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Arjan van de Ven
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
658 guests
online.
Online users
strcmp
maheshdm
Syndicate