[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1380724087-13927-10-git-send-email-jack@suse.cz>
Date: Wed, 2 Oct 2013 16:27:50 +0200
From: Jan Kara <jack@...e.cz>
To: LKML <linux-kernel@...r.kernel.org>
Cc: linux-mm@...ck.org, Jan Kara <jack@...e.cz>,
Naren Sankar <nsankar@...adcom.com>,
Jarod Wilson <jarod@...sonet.com>,
Scott Davilla <davilla@....com>,
Manu Abraham <abraham.manu@...il.com>
Subject: [PATCH 09/26] crystalhd: Convert crystalhd_map_dio() to use get_user_pages_fast()
CC: Naren Sankar <nsankar@...adcom.com>
CC: Jarod Wilson <jarod@...sonet.com>
CC: Scott Davilla <davilla@....com>
CC: Manu Abraham <abraham.manu@...il.com>
Signed-off-by: Jan Kara <jack@...e.cz>
---
drivers/staging/crystalhd/crystalhd_misc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/crystalhd/crystalhd_misc.c b/drivers/staging/crystalhd/crystalhd_misc.c
index 51f698052aff..f2d350985e46 100644
--- a/drivers/staging/crystalhd/crystalhd_misc.c
+++ b/drivers/staging/crystalhd/crystalhd_misc.c
@@ -751,10 +751,7 @@ enum BC_STATUS crystalhd_map_dio(struct crystalhd_adp *adp, void *ubuff,
}
}
- down_read(¤t->mm->mmap_sem);
- res = get_user_pages(current, current->mm, uaddr, nr_pages, rw == READ,
- 0, dio->pages, NULL);
- up_read(¤t->mm->mmap_sem);
+ res = get_user_pages_fast(uaddr, nr_pages, rw == READ, dio->pages);
/* Save for release..*/
dio->sig = crystalhd_dio_locked;
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists