summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-22 18:18:55 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-22 23:14:28 -0400
commit43bfe7bc3c2817f42548f650e82aa506d605c0a3 (patch)
tree97a15c8b4d9404523f1856a32ba45d61a69e0db7 /drivers/scsi/st.c
parenta6e0d12fc6fa6e48b51858f4ef1c0469f8036985 (diff)
downloadlinux-stable-43bfe7bc3c2817f42548f650e82aa506d605c0a3.tar.gz
linux-stable-43bfe7bc3c2817f42548f650e82aa506d605c0a3.tar.bz2
linux-stable-43bfe7bc3c2817f42548f650e82aa506d605c0a3.zip
st: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 94e402ed30f6..b141d7641a2e 100644
--- 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)