summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2026-07-09 11:43:07 -0600
committerJens Axboe <axboe@kernel.dk>2026-07-09 11:43:07 -0600
commitf3176c8ac4217c88fe1147ab084c47092921ffc4 (patch)
tree66a53465abf41f5c9ff8dc55ebef4555db6cd8c8 /io_uring
parent648790e0952789527ec68548edbedbc0fcff43b5 (diff)
downloadlinux-f3176c8ac4217c88fe1147ab084c47092921ffc4.tar.gz
linux-f3176c8ac4217c88fe1147ab084c47092921ffc4.tar.bz2
linux-f3176c8ac4217c88fe1147ab084c47092921ffc4.zip
Revert "io_uring: grab RCU read lock marking task run"
This reverts commit ed64f5c546b3d5e3a4840f6c055448ce90edf56c. Since commit: 648790e09527 ("io_uring: restore RCU read section in io_req_local_work_add()") io_ctx_mark_taskrun() is only ever called with the RCU read lock already held, like previously. Hence's there's no need for this commit anymore, which grabbed the RCU read lock inside io_ctx_mark_taskrun(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/tw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_uring/tw.c b/io_uring/tw.c
index 4f7a0d1079a4..e6ee15571e85 100644
--- a/io_uring/tw.c
+++ b/io_uring/tw.c
@@ -139,11 +139,11 @@ void tctx_task_work(struct callback_head *cb)
*/
static void io_ctx_mark_taskrun(struct io_ring_ctx *ctx)
{
+ lockdep_assert_in_rcu_read_lock();
+
if (ctx->flags & IORING_SETUP_TASKRUN_FLAG) {
- struct io_rings *rings;
+ struct io_rings *rings = rcu_dereference(ctx->rings_rcu);
- guard(rcu)();
- rings = rcu_dereference(ctx->rings_rcu);
atomic_or(IORING_SQ_TASKRUN, &rings->sq_flags);
}
}