Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
43bfe7bc
Commit
43bfe7bc
authored
Sep 22, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
st: use get_user_pages_fast()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a6e0d12f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
drivers/scsi/st.c
drivers/scsi/st.c
+1
-5
No files found.
drivers/scsi/st.c
View file @
43bfe7bc
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment