diff options
| author | 2026-05-11 10:58:38 -0600 | |
|---|---|---|
| committer | 2026-05-11 11:14:29 -0600 | |
| commit | 20c39819a27646573dfa0ac0d01c38895298a6f6 (patch) | |
| tree | 0daddd653a814874e9d40e2d54bebbbec445672d /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | io_uring/fdinfo: translate SqThread PID through caller's pid_ns (diff) | |
io_uring: hold uring_lock when walking link chain in io_wq_free_work()
io_wq_free_work() calls io_req_find_next() from io-wq worker context,
which reads and clears req->link without holding any lock. This can
potentially race with other paths that mutate the same chain under
ctx->uring_lock.
Take ctx->uring_lock around the io_req_find_next() call. Only requests
with IO_REQ_LINK_FLAGS reach this path, which is not the hot path.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
