Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp613401pxb; Wed, 13 Apr 2022 08:46:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMNcEApnFtnGd3hiO0rZtY+PDNvn/QInLcgh/x1iJ/AtQTKi6KkC5k2FKJoQaTPpJSBvrK X-Received: by 2002:a05:6402:5186:b0:419:49af:428f with SMTP id q6-20020a056402518600b0041949af428fmr44831698edd.177.1649864770884; Wed, 13 Apr 2022 08:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649864770; cv=none; d=google.com; s=arc-20160816; b=RxwhnKLe14soaoPFhSGga5z3OPZ5P5r6p+jkUzbDrcA1WNEY+fcAU8zz4w2fV6R/Hv XHjd+bWma82NuqJakIXLGJqPzuKa2kcPu8ZgbrHWMA0dpxiO1HckZyAkM0pjwiciFGtG nJTxJjfd3lFr+eOqwEu20/+DE/Ijuo/AR5RCuQyrTvMubM9so29mpHoRIEND25K0eFJz AEvo6nn0s2+SP3XcU8En9zDZR6jUev3mcGJvpzHEnl15XOMAltg77RblJ/roIaOou+t/ Q4cdqdG4YU/nH5UIdkmlH/pet/FpRb8SuwKCqghen89BKE/0Rpnm2g2irNac7RydaZU5 pZJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=ngB0VaDZkffeOh+BSwJSCsqMcNibSRUO4jU8FKml6Bs=; b=FxMKgYHhbopftGqX7EGzAa8rjiPMTgKmREx9wdOtCTeTZHQumBt7prRmm3xVGtkUy6 XcHItNWd9D9BW3dFGfDFcFgRucEM9ZTYuy4ISBtUQwTwFnhZIIUo6blIXiTNYhkSuQjt 6MB3jtLD2HytkQMCHacgXA/UDYO14/tjwKBdPIgAfOPZE4ZNn3aeToL0FODh0o5YNUEl r3oTCxexxfgiJB52Ij1+gj/Gd4MRy4KVmaE8hodUUoyCABlsxlizx8aEcJqsHRLQHWbd C2IQkmYejeABdis6T5eE7gu+yoW3Hz1Wv1w41IXB6DkJQVjjYbOp90irhZZGGRG+Y7ah 8Azg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=i8qKj0NN; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=haFT45FM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020aa7cfc9000000b0041dc68a6e02si1815057edy.569.2022.04.13.08.45.43; Wed, 13 Apr 2022 08:46:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=i8qKj0NN; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=haFT45FM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235144AbiDMLOk (ORCPT + 99 others); Wed, 13 Apr 2022 07:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232227AbiDMLOi (ORCPT ); Wed, 13 Apr 2022 07:14:38 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3573027FE3; Wed, 13 Apr 2022 04:12:18 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id E1787210E5; Wed, 13 Apr 2022 11:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649848336; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ngB0VaDZkffeOh+BSwJSCsqMcNibSRUO4jU8FKml6Bs=; b=i8qKj0NNFnGDs/62UlAmcsdLiT3oYBGGKRDyTKuXoGgeqCfro+kOFHFEtUEnkuXMb9nrfZ jsOai74lku4/r+dmPZLZkCSpMSx3PL33g3X0PyDW/EOZWGk9rEXFvoS8UkeuIHLitPT1b5 ViZOs9dic+cSfwyRWq1RVGDSWUAlQGw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649848336; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ngB0VaDZkffeOh+BSwJSCsqMcNibSRUO4jU8FKml6Bs=; b=haFT45FMpnXW+0MzW9Ui1fMZNh/llnnI3l08AdD/0HoufaBvM07pNwAHzWzodylCXdQXTp kTc795IgiNJSZQBA== Received: from quack3.suse.cz (unknown [10.100.224.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id CCDB2A3B87; Wed, 13 Apr 2022 11:12:16 +0000 (UTC) Received: by quack3.suse.cz (Postfix, from userid 1000) id 7F4AFA0615; Wed, 13 Apr 2022 13:12:16 +0200 (CEST) Date: Wed, 13 Apr 2022 13:12:16 +0200 From: Jan Kara To: Yu Kuai Cc: tj@kernel.org, axboe@kernel.dk, paolo.valente@linaro.org, jack@suse.cz, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH -next 00/11] support concurrent sync io for bfq on a specail occasion Message-ID: <20220413111216.npgrdzaubsvjsmy3@quack3.lan> References: <20220305091205.4188398-1-yukuai3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220305091205.4188398-1-yukuai3@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 05-03-22 17:11:54, Yu Kuai wrote: > Currently, bfq can't handle sync io concurrently as long as they > are not issued from root group. This is because > 'bfqd->num_groups_with_pending_reqs > 0' is always true in > bfq_asymmetric_scenario(). > > This patchset tries to support concurrent sync io if all the sync ios > are issued from the same cgroup: > > 1) Count root_group into 'num_groups_with_pending_reqs', patch 1-5; Seeing the complications and special casing for root_group I wonder: Won't we be better off to create fake bfq_sched_data in bfq_data and point root_group->sched_data there? AFAICS it would simplify the code considerably as root_group would be just another bfq_group, no need to special case it in various places, no games with bfqg->my_entity, etc. Paolo, do you see any problem with that? Honza -- Jan Kara SUSE Labs, CR