Lines Matching refs:sqd
2728 struct io_sq_data *sqd = ctx->sq_data;
2731 io_sq_thread_park(sqd);
2732 tsk = sqd->thread;
2736 io_sq_thread_unpark(sqd);
2939 * requests. @sqd should be not-null IFF it's an SQPOLL thread cancellation.
2941 __cold void io_uring_cancel_generic(bool cancel_all, struct io_sq_data *sqd)
2948 WARN_ON_ONCE(sqd && sqd->thread != current);
2965 if (!sqd) {
2977 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list)
3785 struct io_sq_data *sqd = NULL;
3796 sqd = ctx->sq_data;
3797 if (sqd) {
3799 * Observe the correct sqd->lock -> ctx->uring_lock
3803 refcount_inc(&sqd->refs);
3805 mutex_lock(&sqd->lock);
3807 if (sqd->thread)
3808 tctx = sqd->thread->io_uring;
3829 if (sqd) {
3830 mutex_unlock(&sqd->lock);
3831 io_put_sq_data(sqd);
3838 if (sqd)
3855 if (sqd) {
3856 mutex_unlock(&sqd->lock);
3857 io_put_sq_data(sqd);