projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e0d12
)
st: use get_user_pages_fast()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 22 Sep 2017 22:18:55 +0000
(18:18 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 23 Sep 2017 03:14:28 +0000
(23:14 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/st.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/st.c
b/drivers/scsi/st.c
index 94e402ed30f6ae54ecb32160480d554e6e118827..b141d7641a2e3474b95e6d4424c3508ade62036d 100644
(file)
--- a/
drivers/scsi/st.c
+++ b/
drivers/scsi/st.c
@@
-4920,11
+4920,7
@@
static int sgl_map_user_pages(struct st_buffer *STbp,
/* Try to fault in all of the necessary pages */
/* rw==READ means read from drive, write into memory area */
- res = get_user_pages_unlocked(
- uaddr,
- nr_pages,
- pages,
- rw == READ ? FOLL_WRITE : 0); /* don't force */
+ res = get_user_pages_fast(uaddr, nr_pages, rw == READ, pages);
/* Errors and no page mapped should return here */
if (res < nr_pages)