diff options
author | 2021-04-08 19:28:03 +0100 | |
---|---|---|
committer | 2021-04-08 13:32:59 -0600 | |
commit | 9728463737db027557e8ba315cbbca6b81122c04 (patch) | |
tree | 0ca66c69feef8efb268fd54ae45bde6e38f00863 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | io_uring: clear F_REISSUE right after getting it (diff) | |
download | wireguard-linux-9728463737db027557e8ba315cbbca6b81122c04.tar.xz wireguard-linux-9728463737db027557e8ba315cbbca6b81122c04.zip |
io_uring: fix rw req completion
WARNING: at fs/io_uring.c:8578 io_ring_exit_work.cold+0x0/0x18
As reissuing is now passed back by REQ_F_REISSUE and kiocb_done()
internally uses __io_complete_rw(), it may stop after setting the flag
so leaving a dangling request.
There are tricky edge cases, e.g. reading beyound file, boundary, so
the easiest way is to hand code reissue in kiocb_done() as
__io_complete_rw() was doing for us before.
Fixes: 230d50d448ac ("io_uring: move reissue into regular IO path")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f602250d292f8a84cca9a01d747744d1e797be26.1617842918.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions