From mboxrd@z Thu Jan 1 00:00:00 1970 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 BE954CCA473 for ; Wed, 15 Jun 2022 11:02:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346242AbiFOLCx (ORCPT ); Wed, 15 Jun 2022 07:02:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349025AbiFOLAJ (ORCPT ); Wed, 15 Jun 2022 07:00:09 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF365527EB for ; Wed, 15 Jun 2022 04:00:07 -0700 (PDT) Message-ID: <328af881-5d33-dbca-24eb-bfbc64490b61@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1655290806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9HaVzfSOBG/aJqMJpXPE153WiM6lwUKmqs7lxd4WcU8=; b=eqT2WnYPrMOqYwdPWc2N6vwrfybDHL8lCoz1wMyIjC72/RFvz1UOZKz7Ksn47wREmeV/Ic UaOkqm98QeblCf2OjMI5lsf7Qc05FjkDHFN/1ivAigsVVVbziZ+CIjmXzSp13luN+xuva0 6XZvra3FWRrgOj8rKJeYZT/qf+0EQTE= Date: Wed, 15 Jun 2022 18:59:58 +0800 MIME-Version: 1.0 Subject: Re: [PATCH for-next v2 04/25] io_uring: refactor ctx slow data placement Content-Language: en-US To: Pavel Begunkov , io-uring@vger.kernel.org Cc: Jens Axboe References: <353c4c53-18c3-976c-b964-0bc47c9b2d86@linux.dev> <5d77c39b-53b3-54e8-4443-1049d6d58cca@gmail.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Hao Xu In-Reply-To: <5d77c39b-53b3-54e8-4443-1049d6d58cca@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 6/15/22 18:11, Pavel Begunkov wrote: > On 6/15/22 08:58, Hao Xu wrote: >> On 6/14/22 22:36, Pavel Begunkov wrote: >>> Shove all slow path data at the end of ctx and get rid of extra >>> indention. >>> >>> Signed-off-by: Pavel Begunkov >>> --- >>>   io_uring/io_uring_types.h | 81 +++++++++++++++++++-------------------- >>>   1 file changed, 39 insertions(+), 42 deletions(-) >>> >>> diff --git a/io_uring/io_uring_types.h b/io_uring/io_uring_types.h >>> index 4f52dcbbda56..ca8e25992ece 100644 >>> --- a/io_uring/io_uring_types.h >>> +++ b/io_uring/io_uring_types.h >>> @@ -183,7 +183,6 @@ struct io_ring_ctx { >>>           struct list_head    apoll_cache; >>>           struct xarray        personalities; >>>           u32            pers_next; >>> -        unsigned        sq_thread_idle; >> >> SQPOLL is seen as a slow path? > > SQPOLL is not a slow path, but struct io_ring_ctx::sq_thread_idle > definitely is. Perhaps, you mixed it up with > struct io_sq_data::sq_thread_idle > Indeed, thanks.