Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1598494
| From | Eric Biggers <ebiggers3@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] statx: optimize copy of struct statx to userspace |
| Date | 2017-03-11 22:50 +0100 |
| Message-ID | <tjX3H-fX-5@gated-at.bofh.it> (permalink) |
| References | <tjMhX-1jq-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Mar 11, 2017 at 02:15:10AM -0800, Eric Biggers wrote: > stat() instead initializes its struct on the stack and copies it to > userspace with a single call to copy_to_user(). This turns out to be > much faster, and changing statx to do this makes it almost as fast as > stat: Hmm, I missed that the access_ok() check in sys_statx() will no longer be needed. I'm sending a revised patch that removes that too. Eric
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] statx: optimize copy of struct statx to userspace Eric Biggers <ebiggers3@gmail.com> - 2017-03-11 11:20 +0100 Re: [PATCH] statx: optimize copy of struct statx to userspace David Howells <dhowells@redhat.com> - 2017-03-11 20:30 +0100 Re: [PATCH] statx: optimize copy of struct statx to userspace Eric Biggers <ebiggers3@gmail.com> - 2017-03-11 22:50 +0100
csiph-web