diff options
author | Aleix Roca Nonell <[email protected]> | 2019-08-15 14:03:22 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2019-08-15 11:03:38 -0600 |
commit | 99c79f6692ccdc42e04deea8a36e22bb48168a62 (patch) | |
tree | d665a31392cb938848e7a17e21d7fe2b034ed862 /tools/perf/util/trace-event-scripting.c | |
parent | ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0 (diff) |
io_uring: fix manual setup of iov_iter for fixed buffers
Commit bd11b3a391e3 ("io_uring: don't use iov_iter_advance() for fixed
buffers") introduced an optimization to avoid using the slow
iov_iter_advance by manually populating the iov_iter iterator in some
cases.
However, the computation of the iterator count field was erroneous: The
first bvec was always accounted for an extent of page size even if the
bvec length was smaller.
In consequence, some I/O operations on fixed buffers were unable to
operate on the full extent of the buffer, consistently skipping some
bytes at the end of it.
Fixes: bd11b3a391e3 ("io_uring: don't use iov_iter_advance() for fixed buffers")
Cc: [email protected]
Signed-off-by: Aleix Roca Nonell <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions