Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3905108ioa; Tue, 26 Apr 2022 12:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR4/vSFRPhWMbGoa8WccA5KA7KGN5Awa+yuQIMkXCRgtxvTapiZbH1movEnF3KLfvInp8w X-Received: by 2002:a05:6808:2106:b0:323:abf:7e2f with SMTP id r6-20020a056808210600b003230abf7e2fmr11499037oiw.252.1650999838878; Tue, 26 Apr 2022 12:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650999838; cv=none; d=google.com; s=arc-20160816; b=j3MAeZRBZ/Kf7SiXQmtROCAxnnbAPQWRKJY1p1o+BoYrDs+Xeu4H1SUowHz7NXAiIx MJM3QUAku3lpUfhj1KNIiZVg2jaxfwdtAIoP0SuWq2pRP86Tpz+QVCDvUAkB4wgBj1B4 plC8BBzi3e/7X1Voi4epOYMs01Oaa/FDGKmFsqk2ICx+yJ91CBZXFBc3UoLnMBZlodj+ +bWJCwE87S4Qa7hLd5H+gVthn1ZV1XB7byZWq6lTNlq3mLxwIRWhcRTYdYlJOfGZnIi5 GkVMaa+7ddIk/8V7ycFNAMGecYcQP0Yt/4dcPC//qvn+pLEMHbQpdxGCGmzuHkNswDJk vwrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=vGi2xWo0glztPoHlb3pGflxD9oTprLjQ3hPK/vMNf9g=; b=ShnSo5H0V4cYqVpuJcUOFIHY4IxDTQVKT79U7Z8TieTgGNQ/BX/7Pln0OXnnZEfNwh 7wQg+W7VqtDaD+UuzXE4iCSdAETZNZIJBEmsUMp6NRu73gi6EciR7Nrj2OFrjIR9FkSQ /cYGmps4d0wbTlH2myZ+S3lTJ3j8kwPwZHgODmwSuQhP1qYXFa7RDC+VampwXuNVLxxT ImKD52si2/Qr9yQYPaG4ejZFnMGMwT/bNneZpuwfwZrQUpVtyLsbN2J9xSAEbeWGqcZw JYHq1aNGwaXYhq2+uUGPKjhQ34QI2tuW4gvZVCBFxNTYBxNwYFjviBKFuXnfJrOZCd/q zNxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hQ7W0BWc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k27-20020a4adfbb000000b0035e8a7d3e55si1242798ook.73.2022.04.26.12.03.41; Tue, 26 Apr 2022 12:03:58 -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=@linaro.org header.s=google header.b=hQ7W0BWc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351025AbiDZO2J (ORCPT + 99 others); Tue, 26 Apr 2022 10:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346461AbiDZO2G (ORCPT ); Tue, 26 Apr 2022 10:28:06 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7FCC5A082 for ; Tue, 26 Apr 2022 07:24:56 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id l18so9797509ejc.7 for ; Tue, 26 Apr 2022 07:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vGi2xWo0glztPoHlb3pGflxD9oTprLjQ3hPK/vMNf9g=; b=hQ7W0BWcpUkQc/T8HXofDKebFeuGCBNPA5SZVDUfqR/Wgw7Qois8SYRnyk9WOoAHeu F/9jI9kUIifVKMlpQKopUdI/JZsUhYq/vQcqeQK4/nxr9MspWekGKFdgaWjZZsQVqxhu tmS+2B+y3iD7cVRg0aBWsQnviwtyJcRl60tsNuO09pmmr2LGiuSl+b9edYTc8nrargte ufPok664AcZ7cV+an88gvuWIEVSJMo3IR31ozD8FfRbz1dZEA5V21oxe1GZ9V7jSg/cU hgKUeLqYaG8JBRTtZFaqg06j5HFctbBkAB4mjjXcEmG4ci7ClXQz0YfqeQxhVk0uUDy0 5fKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vGi2xWo0glztPoHlb3pGflxD9oTprLjQ3hPK/vMNf9g=; b=GSHmb/ISu6xbuvwAAPJ7dkdlW7gYDu7WS5A+C/EcVuUoUNCuFZ5v8MB5dOvX4nIT4t nODLFujCVqI0v27lvT/O3mVQk2Ajh/0qqePgJljs0ptrMldVcyaWqb6O25Q2TDn6agIY nNyUEXxI42nqcuLGk5oD5WtNRZS/c5C9sQZSBQgHKnGkbRhS/AO+p5VvDFF8nlqLsvgN VdKt5Q5fItN0EAcTO4tRK7wvkoOcOoYCgAc3cWyjy54eQvsQ8yIf6E4DXOFjeUZZbG9G tOZRUTCVQMomzseRXqgIGi8MKdxcGpS3/ANo0UCG4KwuauVYM1Df3xa27cUpkr/co+qI /IKg== X-Gm-Message-State: AOAM5315gXc6PCiXZlJXZ6v4qeqHkg4Qo/hn81FISRRvwSZatm34n+43 tyUJ8GphKwOTGoeDQ/iyy1Y3vg== X-Received: by 2002:a17:907:86ab:b0:6e8:d60e:d6c3 with SMTP id qa43-20020a17090786ab00b006e8d60ed6c3mr21366841ejc.346.1650983095263; Tue, 26 Apr 2022 07:24:55 -0700 (PDT) Received: from [192.168.0.13] ([83.216.184.132]) by smtp.gmail.com with ESMTPSA id l20-20020a1709062a9400b006ce71a88bf5sm4976128eje.183.2022.04.26.07.24.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Apr 2022 07:24:54 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH -next 00/11] support concurrent sync io for bfq on a specail occasion From: Paolo Valente In-Reply-To: <20220413111216.npgrdzaubsvjsmy3@quack3.lan> Date: Tue, 26 Apr 2022 16:24:51 +0200 Cc: Yu Kuai , Tejun Heo , Jens Axboe , cgroups@vger.kernel.org, linux-block , LKML , yi.zhang@huawei.com Content-Transfer-Encoding: 7bit Message-Id: <7C91FB1F-0690-4D1C-A631-98236F6DC55F@linaro.org> References: <20220305091205.4188398-1-yukuai3@huawei.com> <20220413111216.npgrdzaubsvjsmy3@quack3.lan> To: Jan Kara X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 > Il giorno 13 apr 2022, alle ore 13:12, Jan Kara ha scritto: > > 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? > I do see the benefits. My only concern is that then we also need to check/change the places that rely on the assumption that we would change. Thanks, Paolo > Honza > -- > Jan Kara > SUSE Labs, CR