From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4059634DCEC for ; Thu, 13 Nov 2025 12:00:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763035206; cv=none; b=oIP47K/BOrqEtzuATHOHHhPT8dL95TWJ0ocYcQSn+sQ63qPD6Pl5oivjOCKB1BcLX/Pc9Ly1AFdQX7KKai/y3hf5QbU6bJ3b+bo95TMy29cmdDhF0dQ0jnpIKsgLo59eswllqEqtehVGzp3yrnHXlvzMWbUWWLECTT/ddxeK9Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763035206; c=relaxed/simple; bh=pIveeSzj6i0AGp1kNzA0NDr1gOHhtDQMZMyw6zynZQY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EtMh4ysqrjf7xBY/BcEPfOSF3shYxgt8vPN4qu43wc1AJwOuC0cm0ukoWOtKk/I/V5+NnNlBS/5iiKfRGG0iaiUZty7PIqt/Sd64p2OzuH6OOCVmIHFzrGBalirvSoCHDsPDLwbe8+wy2ux+Ohod4BI4f2ZOY8nBvddryDK5ZHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dHykL+dr; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dHykL+dr" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-47721743fd0so4327925e9.2 for ; Thu, 13 Nov 2025 04:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763035203; x=1763640003; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Aua+W08t/byOMJPjPNanlN6jE5TAgPSaiLXUlwOzmHk=; b=dHykL+drxj3NXG9NW7XfZOiPGQlXPomF2KId708Zy6vNtYcXGBM0zoBEu9eYSLMP7F T4CRG/0rQKi64z3JgbW6Y0erNMV0MTGv/tRsAaLmmctfkmLwmTKkPQwGDcu++M0P8q5e vU9/alQjpJ0iHFSZ944WraI4mtfjfw/51Inl29bXfH3/Y8CdEUWvF5WHwKz+a3iXaHof BXnLXC/YuNyeaHwN7LOOkT0McIHrmIqqf2hooC7T7nm67ItOomfXt/eJEuLPkoaZtks9 wrGg6AIr34VvhLu9EdASc4Ghak0NS+yg6IazdnDWFlAtoWOKu6Kaq5QJyLGH4d87wVA/ cBUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763035203; x=1763640003; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Aua+W08t/byOMJPjPNanlN6jE5TAgPSaiLXUlwOzmHk=; b=rp3ZeuuOYAWELc04rYacVeJRZq/4oFfROXhVoAa4qyWkObclK+1gy8p5s/7XyOD2o3 Jo58KianONCE6LLWd/Gia/sVgUr2MhspCHVx7dXglQPuAqVx6CPy9aM8f3T71XVNikM1 1WcZBU+UQkhA5ZFtJGbobP98tVJR8e44j3H/5xISUUNfCfB20LDPl0ERgQLkGyY7qrgG c3LhQXSokzDdXS6Bi0rPFeBugi9j4gELn0E4ZztcQA732zuleciCzwN1W1kmuyZskHo4 ZGszThZ/4aUntkRWdhJ2NXBlfwteTBhFpmQDEmxNuGgN6ykY2xhiJpiJJ+LKlCyhy2Pm 3rsQ== X-Gm-Message-State: AOJu0YzGD+Aa4J61E85DAnObqpyVAbfsWDzjRlJ8JN2dELXuQVsxKg8i 30/cLbPF/x9ugqrWA7a0UcnsCbfIpBNbe3dn5lBb0j67P8PQUqau/8Qhd+C3Bw== X-Gm-Gg: ASbGnctuIJ2iSVhkzMkG+OcH5DSoXmCz8a370OhpC7iG/mr6kDzJ2oMApGK6ciAdOnN 9XjBjq6pws6YCIoapasY8R42VmjOkSh+kVKnNk9tX9Ipcu0RmwzoW2gczAii3mj+CnxXdAh+NFu 3+/Fiksx9dd40ObtaupgAk9WAZkmN4xTSIBKcGGNuaQQQpXiSMPBDYMhYQOqiOPFeb4n43fxozP PvmRhRxrDczrHVw5sh6rYNVKd6tbFG7vkVuGnjESAK1r7woUFmvWbbFqAn1K4ow9iI3Ev/Sy3iO qGUAzonDzpjNMXsTvKgk1gp66K/yMMXTNFpOh9IvKCwzQCHwQs9Qskwnax2ITM89sHtfS7/FWup hbLj1Xzjlp4iWvdf5Ql0CdKls8rS5EJDGlAhzrvnx+pGe1Oz5W3NMqjmUKuO6K2yFF1x6Pg== X-Google-Smtp-Source: AGHT+IHnh450rSZrRsHtm+2fGnvU4l+JfvHOq1cwC49twD59D87wME0J4R2fbl9kNoVWl4OD2i/BYQ== X-Received: by 2002:a05:600c:45d4:b0:46f:d682:3c3d with SMTP id 5b1f17b1804b1-4778707cabdmr53188235e9.13.1763035203021; Thu, 13 Nov 2025 04:00:03 -0800 (PST) Received: from 127.com ([2620:10d:c092:600::1:6794]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53e85e6fsm3686816f8f.18.2025.11.13.04.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 04:00:02 -0800 (PST) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: asml.silence@gmail.com, axboe@kernel.dk, Martin KaFai Lau , bpf@vger.kernel.org, Alexei Starovoitov , Andrii Nakryiko , ming.lei@redhat.com Subject: [PATCH v3 03/10] io_uring: export __io_run_local_work Date: Thu, 13 Nov 2025 11:59:40 +0000 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit __io_run_local_work() will be used later by bpf code, export it. Signed-off-by: Pavel Begunkov --- io_uring/io_uring.c | 4 ++-- io_uring/io_uring.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index b26c2a0a0295..4139cfc84221 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1350,8 +1350,8 @@ static int __io_run_local_work_loop(struct llist_node **node, return ret; } -static int __io_run_local_work(struct io_ring_ctx *ctx, io_tw_token_t tw, - int min_events, int max_events) +int __io_run_local_work(struct io_ring_ctx *ctx, io_tw_token_t tw, + int min_events, int max_events) { struct llist_node *node; unsigned int loops = 0; diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 53bc3ef14f9e..a4474eec8a13 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -140,6 +140,8 @@ int io_uring_fill_params(unsigned entries, struct io_uring_params *p); bool io_cqe_cache_refill(struct io_ring_ctx *ctx, bool overflow, bool cqe32); int io_run_task_work_sig(struct io_ring_ctx *ctx); int io_run_local_work(struct io_ring_ctx *ctx, int min_events, int max_events); +int __io_run_local_work(struct io_ring_ctx *ctx, io_tw_token_t tw, + int min_events, int max_events); void io_req_defer_failed(struct io_kiocb *req, s32 res); bool io_post_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags); void io_add_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags); -- 2.49.0