Skip to content
Commit 9fd4470f authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Use the new batched user accesses in generic user string handling



This converts the generic user string functions to use the batched user
access functions.

It makes a big difference on Skylake, which is the first x86
microarchitecture to implement SMAP.  The STAC/CLAC instructions are not
very fast, and doing them for each access inside the loop that copies
strings from user space (which is what the pathname handling does for
every pathname the kernel uses, for example) is very inefficient.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5b24a7a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment