diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-23 00:21:11 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-23 05:14:32 +0200 |
commit | e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7 (patch) | |
tree | 404f9c6be0e4b5d3c7ba9b30d445c694d8b3a282 | |
parent | st: use get_user_pages_fast() (diff) | |
download | linux-e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7.tar.xz linux-e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7.zip |
atomisp: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-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 11162f595fc7..2052f8d2f137 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; } |