aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-01-26 23:35:10 +0000
committerJens Axboe <[email protected]>2021-01-27 02:36:55 +0000
commit907d1df30a51cc1a1d25414a00cde0494b83df7b (patch)
tree4f4c77ff3eab78ccc44536dc01c21b6b8000127c /scripts/gcc-plugins/cyc_complexity_plugin.c
parentio_uring: fix cancellation taking mutex while TASK_UNINTERRUPTIBLE (diff)
downloadkernel-907d1df30a51cc1a1d25414a00cde0494b83df7b.tar.gz
kernel-907d1df30a51cc1a1d25414a00cde0494b83df7b.zip
io_uring: fix wqe->lock/completion_lock deadlock
Joseph reports following deadlock: CPU0: ... io_kill_linked_timeout // &ctx->completion_lock io_commit_cqring __io_queue_deferred __io_queue_async_work io_wq_enqueue io_wqe_enqueue // &wqe->lock CPU1: ... __io_uring_files_cancel io_wq_cancel_cb io_wqe_cancel_pending_work // &wqe->lock io_cancel_task_cb // &ctx->completion_lock Only __io_queue_deferred() calls queue_async_work() while holding ctx->completion_lock, enqueue drained requests via io_req_task_queue() instead. Cc: [email protected] # 5.9+ Reported-by: Joseph Qi <[email protected]> Tested-by: Joseph Qi <[email protected]> Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions