Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-12 Thread Joerg Roedel
On Mon, Apr 28, 2014 at 05:27:46PM -0500, suravee.suthikulpa...@amd.com wrote: > From: Jay Cornwall > > get_user_pages requires caller to hold a read lock on mmap_sem. > > Signed-off-by: Jay Cornwall > Signed-off-by: Suravee Suthikulpanit Applied, thanks Jay and Suravee. -- To unsubscribe

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-12 Thread Joerg Roedel
On Mon, Apr 28, 2014 at 05:27:46PM -0500, suravee.suthikulpa...@amd.com wrote: From: Jay Cornwall jay.cornw...@amd.com get_user_pages requires caller to hold a read lock on mmap_sem. Signed-off-by: Jay Cornwall jay.cornw...@amd.com Signed-off-by: Suravee Suthikulpanit

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-06 Thread Suravee Suthikulanit
On 5/6/2014 2:11 PM, Suravee Suthikulanit wrote: On 5/6/2014 1:14 PM, Joerg Roedel wrote: On Mon, Apr 28, 2014 at 05:27:46PM -0500, Suthikulpanit, Suravee wrote: From: Jay Cornwall get_user_pages requires caller to hold a read lock on mmap_sem. Right, but can't we just switch to

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-06 Thread Suravee Suthikulanit
On 5/6/2014 1:14 PM, Joerg Roedel wrote: On Mon, Apr 28, 2014 at 05:27:46PM -0500, Suthikulpanit, Suravee wrote: From: Jay Cornwall get_user_pages requires caller to hold a read lock on mmap_sem. Right, but can't we just switch to get_user_pages_fast instead? Joerg You're

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-06 Thread Joerg Roedel
On Mon, Apr 28, 2014 at 05:27:46PM -0500, Suthikulpanit, Suravee wrote: > From: Jay Cornwall > > get_user_pages requires caller to hold a read lock on mmap_sem. Right, but can't we just switch to get_user_pages_fast instead? Joerg -- To unsubscribe from this list: send the line

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-06 Thread Joerg Roedel
On Mon, Apr 28, 2014 at 05:27:46PM -0500, Suthikulpanit, Suravee wrote: From: Jay Cornwall jay.cornw...@amd.com get_user_pages requires caller to hold a read lock on mmap_sem. Right, but can't we just switch to get_user_pages_fast instead? Joerg -- To unsubscribe from this list:

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-06 Thread Suravee Suthikulanit
On 5/6/2014 1:14 PM, Joerg Roedel wrote: On Mon, Apr 28, 2014 at 05:27:46PM -0500, Suthikulpanit, Suravee wrote: From: Jay Cornwall jay.cornw...@amd.com get_user_pages requires caller to hold a read lock on mmap_sem. Right, but can't we just switch to get_user_pages_fast instead?

Re: [PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-05-06 Thread Suravee Suthikulanit
On 5/6/2014 2:11 PM, Suravee Suthikulanit wrote: On 5/6/2014 1:14 PM, Joerg Roedel wrote: On Mon, Apr 28, 2014 at 05:27:46PM -0500, Suthikulpanit, Suravee wrote: From: Jay Cornwall jay.cornw...@amd.com get_user_pages requires caller to hold a read lock on mmap_sem. Right, but can't we just

[PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-04-28 Thread suravee.suthikulpanit
From: Jay Cornwall get_user_pages requires caller to hold a read lock on mmap_sem. Signed-off-by: Jay Cornwall Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd_iommu_v2.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/amd_iommu_v2.c

[PATCH] iommu/amd: Take mmap_sem when calling get_user_pages

2014-04-28 Thread suravee.suthikulpanit
From: Jay Cornwall jay.cornw...@amd.com get_user_pages requires caller to hold a read lock on mmap_sem. Signed-off-by: Jay Cornwall jay.cornw...@amd.com Signed-off-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com --- drivers/iommu/amd_iommu_v2.c |2 ++ 1 file changed, 2 insertions(+)