Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5479203rwj; Wed, 21 Dec 2022 03:17:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXu42XTsj/I2q6OWQSNqF4l41i5pcOqvgSrwFJI6Im27N+g2s3x9JWTVMUefcbOYWDeeVCjv X-Received: by 2002:a05:6402:43cf:b0:461:8a1a:271f with SMTP id p15-20020a05640243cf00b004618a1a271fmr5341290edc.11.1671621437301; Wed, 21 Dec 2022 03:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671621437; cv=none; d=google.com; s=arc-20160816; b=qmhRTiu49cLVnWKSREu9JE56cWH+Bpx4i6Hi3xjuCa/UyirGm/aBH2C+3IY8EwZ4GO B60IC4e050QYbHhn2m3OpzaN4scpgBLUujpRCF4GlYL+Z5girAg9KbQaPMddT/K4nQX8 d1QlqUm/8VaA9UBEHf0xzgyTfQ5KreqOeozpEoeV456+1gMU2bEkMuaX8Dp07YJtLsX4 hSCH8Q1QoifdXYeo1+B6TR9k1VYLcPIhPQ/U+rfQoMiUM9hO1Nm+FcJmeaUnAcqOXRqX pwGs6cQuz2e3IBYjtv2+CoJYeGI8bcHWDqg3Z+96kvw66y0q0mFwc0C3nIUjUorteg2S cybg== 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=cjvJRQIdCdV8yoJ43xfdfjH/MiEQ7j354lDaOzKqIs0=; b=xTtB5gNKN2/Dw0oAuGShYee4OHpM0Ugg8gcZe4b78RZB/q6KhDTFS4AdQDqmZ3cD8F UXRQ7Rdp7UotYYw/LA30AMTq3yv5WFtKL/8RxKyVYgS3RNmatnQOLU1i/GPzyy//8Zvd 3bRVdiXMAyu31DJsuHZeOr4hjvzbIocRpxwrVqf3I9O9e2kM3b8JHJv+zZBs7vvQw+ce 5dH2P9gOAIYFJx4eMg4+YI7f0/DeUgTUZhiw+wB6OG4i8Pnm+UlFngS8L453Z1ZzDHAY UQ8aLpjvTlD4/y8EWKU49QQmpnmC2URFyRbDbJBD971SVTAVvFusTgh4vjWBAHS0i1DP chyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IjfAOC6t; 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 x5-20020aa7d385000000b0046ca3c3df50si3576440edq.211.2022.12.21.03.17.00; Wed, 21 Dec 2022 03:17:17 -0800 (PST) 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=IjfAOC6t; 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 S234533AbiLUKcM (ORCPT + 69 others); Wed, 21 Dec 2022 05:32:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234497AbiLUKam (ORCPT ); Wed, 21 Dec 2022 05:30:42 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3EE83 for ; Wed, 21 Dec 2022 02:30:39 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id vv4so35806891ejc.2 for ; Wed, 21 Dec 2022 02:30:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cjvJRQIdCdV8yoJ43xfdfjH/MiEQ7j354lDaOzKqIs0=; b=IjfAOC6tCgGjsFhMyJghmv6WwLaHCfdYPbrupetldsJgQrxHRbw78h4wOlxrpaBCif FTx5gODrnqh8avB0XW5lzJJX2ic7ypHCu7BBRMOJbn4zWeWoaP4s9nDBqHv/V3J8CHMC ybk991vV5sGjWkUS4uO0H9+ChrIt/BQ2OMosnZwoLCQAU5txFR0HYsJLVBEhBiL2+9QM a6aMJxTBOq4FL0UX5AwpRjsnN2wFlHFAK4J40XS9rUSEM4R+25VW9M/9gDpGwh3Uf8es 5tWq6hn40GirDmCjrt++hYkD27gM0kK9r4lP95oB9/ZphtKO0EzDvBaPrxA/6ZtSlCEP yBOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cjvJRQIdCdV8yoJ43xfdfjH/MiEQ7j354lDaOzKqIs0=; b=yEoZF+AVOiune9ODZuxR1/F0YsPw5+RLdnzop9hQJmH1VxtevXj2DGCHXB2N7O2xba YNT5PVuqOQU6koa8HFoWCePtl9o+rkASMO9AT7Z6HE0is+nxsm4C+DuoJ3kOw2Fsf3yV BnEjHTF4YkKYpZ12n/+Vh8KKelDrHCP/IRXCk/ojH74A1Kiu+trJH/703VlN6pHXkugn X+YWkGPdRXDnB0nwpZmx6iADmVQE/P4ecWkCaMI+PjfDB+w/9BE9HcrXQHPVEMzqpADc 0NAwGdb2zyhKEiPQRGqGb60SD48yJw3RuoGKUJgH8hv/Ifu1cBkcEE1gp1psxd+MebPS 0rqw== X-Gm-Message-State: AFqh2kqRRcF4Q2VyZHmaVB69OXNDLZNOqyebit3b8j5S5f1d142fi1oG JQ0184ORkileBcKyhAkUwLW5kA== X-Received: by 2002:a17:906:8447:b0:7c8:9f04:ae7e with SMTP id e7-20020a170906844700b007c89f04ae7emr4278221ejy.22.1671618637560; Wed, 21 Dec 2022 02:30:37 -0800 (PST) Received: from mbp-di-paolo.station (net-93-70-85-0.cust.vodafonedsl.it. [93.70.85.0]) by smtp.gmail.com with ESMTPSA id g25-20020a170906539900b00738795e7d9bsm6919482ejo.2.2022.12.21.02.30.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2022 02:30:37 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH V10 1/8] block, bfq: split sync bfq_queues on a per-actuator basis From: Paolo Valente In-Reply-To: <3E955C95-3912-46D0-A48C-9709F094FD0D@linaro.org> Date: Wed, 21 Dec 2022 11:30:35 +0100 Cc: Jens Axboe , linux-block , linux-kernel , Arie van der Hoeven , Rory Chen , Glen Valante , Gabriele Felici , Carmine Zaccagnino Content-Transfer-Encoding: quoted-printable Message-Id: <918DD21A-0099-4EF9-955B-CAED2A3F8947@linaro.org> References: <20221209094442.36896-1-paolo.valente@linaro.org> <20221209094442.36896-2-paolo.valente@linaro.org> <60582F89-8020-4468-80FE-BC52202D1129@linaro.org> <3E955C95-3912-46D0-A48C-9709F094FD0D@linaro.org> To: Damien Le Moal X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,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 21 dic 2022, alle ore 11:13, Paolo Valente = ha scritto: >=20 >=20 >=20 >> Il giorno 21 dic 2022, alle ore 01:50, Damien Le Moal = ha scritto: >>=20 >> On 2022/12/20 22:10, Paolo Valente wrote: >>>>> - /* >>>>> - * Does queue (or any parent entity) exceed number of requests = that >>>>> - * should be available to it? Heavily limit depth so that it = cannot >>>>> - * consume more available requests and thus starve other = entities. >>>>> - */ >>>>> - if (bfqq && bfqq_request_over_limit(bfqq, limit)) >>>>> - depth =3D 1; >>>>> + for (act_idx =3D 0; act_idx < bfqd->num_actuators; act_idx++) { >>>>> + struct bfq_queue *bfqq =3D >>>>> + bic ? bic_to_bfqq(bic, op_is_sync(opf), act_idx) = : NULL; >>>>=20 >>>> Commented already: why not add a "if (!bfqq) return NULL;" in >>>> bic_to_bfqq() ? >>>=20 >>> You have probably missed my reply on this. The problem is that your >>> proposal would improve code (only) here, but it would entail the = above >>> control for all the other invocations, for which it is useless :( >>=20 >> But then you have *a lot* of "if (bfqd)" tests that are useless = elsewhere since >> bic_to_bfqq() never returns NULL. >>=20 >=20 > I'm probably misunderstanding your point, sorry. Could you point me > to one of the places where there is the useless control that would go > away if we add your proposed control inside bic_to_bfqq? You had already done that in a following email, sorry. I have replied to that email of yours. Thanks, Paolo