diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-12-17 19:05:19 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-12-17 19:05:19 +0100 |
commit | 9fd4470ff4974c41b1db43c3b355b9085af9c12a (patch) | |
tree | 68a9c479852bf8e1603262f32bfda48e2f6409a9 /arch | |
parent | Add 'unsafe' user access functions for batched accesses (diff) | |
download | linux-9fd4470ff4974c41b1db43c3b355b9085af9c12a.tar.xz linux-9fd4470ff4974c41b1db43c3b355b9085af9c12a.zip |
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: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions