# \[$\] Thread-identity switcheroo for io\_uring

DevFeed: [\[$\] Thread-identity switcheroo for io\_uring](<https://devfeed.tech/articles/thread-identity-switcheroo-for-io-uring-42126.md>)

Original publisher: [Read original article](<https://lwn.net/Articles/1094303/>)

Author: corbet

Published: 2026-09-17T13:49:59Z

Content type: article

Language: en

Sources: [LWN.net](<https://devfeed.tech/sources/lwn-net.md>)

Topics: [io\_uring](<https://devfeed.tech/topics/io-uring.md>), [async](<https://devfeed.tech/topics/async.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [cache](<https://devfeed.tech/tags/cache.md>), [context-switch](<https://devfeed.tech/tags/context-switch.md>), [cves](<https://devfeed.tech/tags/cves.md>), [execution](<https://devfeed.tech/tags/execution.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [flag](<https://devfeed.tech/tags/flag.md>), [fsync](<https://devfeed.tech/tags/fsync.md>), [function](<https://devfeed.tech/tags/function.md>), [i-o](<https://devfeed.tech/tags/i-o.md>), [id](<https://devfeed.tech/tags/id.md>), [identity](<https://devfeed.tech/tags/identity.md>), [io-uring](<https://devfeed.tech/tags/io-uring.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [patch](<https://devfeed.tech/tags/patch.md>), [performance](<https://devfeed.tech/tags/performance.md>), [thread](<https://devfeed.tech/tags/thread.md>)

## AI overview

Jens Axboe's RFC proposes reducing io_uring overhead for operations that might block but often complete immediately. A scheduler hook detects when a submitting thread is about to sleep; io_uring then swaps its identity with a worker thread so submission processing can continue while the original thread blocks and later finishes the operation. This avoids worker handoff costs when no blocking occurs, but depends on safely exchanging task identities. Conditions such as ptrace, perf events, kernel-tracked futex ownership, realtime scheduling, and shadow stacks can prevent handoff or require additional support. Reported results include nearly 700% improvement for an fsync benchmark on tmpfs, alongside regressions for some always-blocking workloads, especially at higher queue depths where worker parallelism is lost. The series is an RFC exploring viability, not a near-term merge proposal; the excerpt describes safety coverage as a central concern.

## Source excerpt

The io_uring subsystem is all about asynchronous execution; applications count on it to not block -- unless explicitly requested to. Within io_uring, maintaining the "never blocks" guarantee has sometimes been a challenge, given that many paths in the kernel were never designed for asynchronous execution. This problem has been worked around, but at a significant cost to performance. Now, io_uring maintainer Jens Axboe has posted an RFC patch set with a somewhat radical (and potentially scary) solution to the problem.