aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorXiaoguang Wang <[email protected]>2020-06-15 18:06:38 +0000
committerJens Axboe <[email protected]>2020-06-17 18:49:09 +0000
commitbbde017a32b32d2fa8d5fddca25fade20132abf8 (patch)
tree90d492437553c906b55d271e2effc71058e2c9e2 /tools/perf/scripts/python/check-perf-trace.py
parentio_uring: don't fail links for EAGAIN error in IOPOLL mode (diff)
downloadkernel-bbde017a32b32d2fa8d5fddca25fade20132abf8.tar.gz
kernel-bbde017a32b32d2fa8d5fddca25fade20132abf8.zip
io_uring: add memory barrier to synchronize io_kiocb's result and iopoll_completed
In io_complete_rw_iopoll(), stores to io_kiocb's result and iopoll completed are two independent store operations, to ensure that once iopoll_completed is ture and then req->result must been perceived by the cpu executing io_do_iopoll(), proper memory barrier should be used. And in io_do_iopoll(), we check whether req->result is EAGAIN, if it is, we'll need to issue this io request using io-wq again. In order to just issue a single smp_rmb() on the completion side, move the re-submit work to io_iopoll_complete(). Cc: [email protected] Signed-off-by: Xiaoguang Wang <[email protected]> [axboe: don't set ->iopoll_completed for -EAGAIN retry] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions