diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 18:21:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 23:14:32 -0400 |
commit | e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7 (patch) | |
tree | 404f9c6be0e4b5d3c7ba9b30d445c694d8b3a282 /drivers/staging/media/atomisp/pci/atomisp2 | |
parent | 43bfe7bc3c2817f42548f650e82aa506d605c0a3 (diff) | |
download | op-kernel-dev-e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7.zip op-kernel-dev-e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7.tar.gz |
atomisp: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp2')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c index 11162f5..2052f8d 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c @@ -1029,10 +1029,8 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, } else { /*Handle frame buffer allocated in user space*/ mutex_unlock(&bo->mutex); - down_read(¤t->mm->mmap_sem); - page_nr = get_user_pages((unsigned long)userptr, - (int)(bo->pgnr), 1, pages, NULL); - up_read(¤t->mm->mmap_sem); + page_nr = get_user_pages_fast((unsigned long)userptr, + (int)(bo->pgnr), 1, pages); mutex_lock(&bo->mutex); bo->mem_type = HMM_BO_MEM_TYPE_USER; } |