aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorXiaoguang Wang <[email protected]>2020-05-01 00:52:56 +0000
committerJens Axboe <[email protected]>2020-05-01 04:24:27 +0000
commit3fd44c86711f71156b586c22b0495c58f69358bb (patch)
treef68fdffa820b90785254cabbebee9c8f0563dbac /tools/perf/scripts/python/bin/export-to-postgresql-report
parentio_uring: use proper references for fallback_req locking (diff)
downloadkernel-3fd44c86711f71156b586c22b0495c58f69358bb.tar.gz
kernel-3fd44c86711f71156b586c22b0495c58f69358bb.zip
io_uring: use cond_resched() in io_ring_ctx_wait_and_kill()
While working on to make io_uring sqpoll mode support syscalls that need struct files_struct, I got cpu soft lockup in io_ring_ctx_wait_and_kill(), while (ctx->sqo_thread && !wq_has_sleeper(&ctx->sqo_wait)) cpu_relax(); above loop never has an chance to exit, it's because preempt isn't enabled in the kernel, and the context calling io_ring_ctx_wait_and_kill() and io_sq_thread() run in the same cpu, if io_sq_thread calls a cond_resched() yield cpu and another context enters above loop, then io_sq_thread() will always in runqueue and never exit. Use cond_resched() can fix this issue. Reported-by: [email protected] Signed-off-by: Xiaoguang Wang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions