Lines Matching defs:thread

25  * When using the SQ poll thread (IORING_SETUP_SQPOLL), the application
286 struct task_struct *thread;
391 struct io_sq_data *sq_data; /* if using sq thread polling */
2255 * SQPOLL kernel thread doesn't need notification, just a wakeup. For
2683 * thread.
2723 * not in the original thread group (or in task context).
2846 * find it from a io_do_iopoll() thread before the issuer is done
2894 * in sq thread task context or in io worker task context. If
2895 * current task context is sq thread, we don't need to check
2896 * whether should wake up sq thread.
3190 * from an async worker thread, grab the lock for that case.
3517 * do a thread based blocking retry of the operation. That's the unexpected
3784 * which will be released by another thread in
7589 sqd->thread = NULL;
7897 * it has been revived by another thread while
8039 WARN_ON_ONCE(sqd->thread == current);
8054 WARN_ON_ONCE(sqd->thread == current);
8059 if (sqd->thread)
8060 wake_up_process(sqd->thread);
8065 WARN_ON_ONCE(sqd->thread == current);
8070 if (sqd->thread)
8071 wake_up_process(sqd->thread);
8754 /* don't attach to a dying SQPOLL thread, would be racy */
8755 ret = (attached && !sqd->thread) ? -ENXIO : 0;
8782 sqd->thread = tsk;
9521 tsk = sqd->thread;
9735 /* SQPOLL thread does its own polling */
9737 (ctx->sq_data && ctx->sq_data->thread == current)) {
9866 * requests. @sqd should be not-null IFF it's an SQPOLL thread cancellation.
9875 WARN_ON_ONCE(sqd && sqd->thread != current);
10091 * For SQ polling, the thread will do all submissions and completions.
10092 * Just return the requested submit count, and wake the thread if
10099 if (unlikely(ctx->sq_data->thread == NULL)) {
10204 if (sq->thread) {
10205 sq_pid = task_pid_nr(sq->thread);
10206 sq_cpu = task_cpu(sq->thread);
10820 if (sqd->thread)
10821 tctx = sqd->thread->io_uring;
10908 * thread is currently inside io_uring_enter() it might need to grab the