diff options
author | Pengcheng Yang <[email protected]> | 2020-06-04 16:51:30 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-06-04 19:06:26 -0700 |
commit | 341a7213e5c1ce274cc0f02270054905800ea660 (patch) | |
tree | 24ffb5ee7641515733bd3e36f8dd9631c455b4dd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 54e200ab40fc14c863bcc80a51e20b7906608fce (diff) |
kernel/relay.c: fix read_pos error when multiple readers
When reading, read_pos should start with bytes_consumed, not file->f_pos.
Because when there is more than one reader, the read_pos corresponding to
file->f_pos may have been consumed, which will cause the data that has
been consumed to be read and the bytes_consumed update error.
Signed-off-by: Pengcheng Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Al Viro <[email protected]>e
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions