From patchwork Fri Jun 9 12:20:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hao Xu X-Patchwork-Id: 13273878 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F1CEC7EE29 for ; Fri, 9 Jun 2023 12:34:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbjFIMeH (ORCPT ); Fri, 9 Jun 2023 08:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239476AbjFIMeG (ORCPT ); Fri, 9 Jun 2023 08:34:06 -0400 Received: from out-28.mta0.migadu.com (out-28.mta0.migadu.com [IPv6:2001:41d0:1004:224b::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664F730D0 for ; Fri, 9 Jun 2023 05:33:34 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686313250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2vOAGi5rd15wmqnwQoNSWtL1Awzw5b0eMRdqHWf5p8g=; b=VgYamFTzVfz9nbUpCPpp/UomqbB6O1fXrkO7TPsto5XpIe7rWOkBI7RzALJFCHuPoFkUOr r50cPRjwW+HGz8cV7i/PMx8TKrbobyR2mhuM6y/Lm60jJImbRhhBYVEwhAcSBoAkt9B3gx vAoHxIsPbm7U3H4JIYN3hoaHh3gXF/I= From: Hao Xu To: io-uring@vger.kernel.org Cc: Jens Axboe , Pavel Begunkov , Wanpeng Li , linux-fsdevel@vger.kernel.org Subject: [PATCH 04/11] io-wq: add fixed worker members in io_wq_acct Date: Fri, 9 Jun 2023 20:20:24 +0800 Message-Id: <20230609122031.183730-5-hao.xu@linux.dev> In-Reply-To: <20230609122031.183730-1-hao.xu@linux.dev> References: <20230609122031.183730-1-hao.xu@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Hao Xu Add fixed worker related members in io_wq_acct. Signed-off-by: Hao Xu --- io_uring/io-wq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io_uring/io-wq.c b/io_uring/io-wq.c index 7326fef58ca7..bf9e9af8d9ca 100644 --- a/io_uring/io-wq.c +++ b/io_uring/io-wq.c @@ -84,6 +84,8 @@ struct io_wq_acct { raw_spinlock_t lock; struct io_wq_work_list work_list; unsigned long flags; + struct io_worker **fixed_workers; + unsigned int fixed_nr; }; enum {