Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp903921rwl; Thu, 5 Jan 2023 06:15:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXsaqh9Rq4tX80mESz8WrTsca9vdWeQ/zxsO5f6GLWCsuf1+VEbetAh0qip+Xs4Oy6kbUd+e X-Received: by 2002:a17:90a:7341:b0:225:f7b3:aebf with SMTP id j1-20020a17090a734100b00225f7b3aebfmr37324561pjs.30.1672928103635; Thu, 05 Jan 2023 06:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672928103; cv=none; d=google.com; s=arc-20160816; b=Pkvfwqd22Az7CvkhcZ7m2fXpipSCNl+W1eW/ELPFSR9IMTQ82sUnbFsCwENKpxWudg xFfN02VnCqaAH+2ffG5UnO4fvAgDQyu+FS+gXKXal01WUncSawEh083YEWoWnzsjTfOG GAk1UzSnlmh0l8PlmEITJx53rci5BJwLHHOPyQUZ9hkop5yLwicAdPTfv7xjKwLad6H0 3G2eGMUrJZGgvfnmC4x4zptQmy9hOs1PU5kKx8+hCbwIcTzYgEjb7+RV8q/2+9cTLHbu AE01prXuwZPP4Yd3iaWy6VocXGriciSb/HveA7arp/Hp1uQ2F1pA0wJ8qF8klW4or+Ry mjsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=9ePiiHTvCi9jMXx2P08qM2gRHM/y9Rqf52LT1g9KWe4=; b=q7DSlzG68znSMKRYJ4qZUKi74fFj9+w4+o4nhbeBNjiLDgTwTcY2OSSD9w95Tevj/M 12gOUn8Si6RH/5FYivA+7y/pgWhSgpm3O4sEzud3clXbrHNmT4ET8ZDVO7oCxuCeOTO3 TqoJc8kt6OUTS3IWwmJOxPA5Y1jmDqLe//3A2uoC0g0avozTJsihpXzyrAIB8gcEQGfz Xy5TWjWavZIswjkK9D3mZlAmaZyiwX2KiEwOi3OWteRn5cFOH0eEZQOP2bM+WKjpe2qV o3lq40Ug52aYTYLJJDu85HnedL/LGMMiTN1pO85rD7DzoYfrmxvXDMqwiqCy0EIKijLJ ObeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 v11-20020a17090a6b0b00b00209a3e49f63si1929135pjj.94.2023.01.05.06.14.51; Thu, 05 Jan 2023 06:15:03 -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; 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 S234067AbjAEN4F (ORCPT + 58 others); Thu, 5 Jan 2023 08:56:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234161AbjAENzN (ORCPT ); Thu, 5 Jan 2023 08:55:13 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1244A960; Thu, 5 Jan 2023 05:52:37 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4NnnwF1r4Zz4f3wRT; Thu, 5 Jan 2023 21:52:29 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgD3X7Me1rZjMeqZBA--.54696S3; Thu, 05 Jan 2023 21:52:31 +0800 (CST) Subject: Re: [PATCH] blk-cgroup: fix missing pd_online_fn() while activating policy To: =?UTF-8?Q?Michal_Koutn=c3=bd?= , Yu Kuai Cc: tj@kernel.org, josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20230103112833.2013432-1-yukuai1@huaweicloud.com> <20230104151241.GA13268@blackbody.suse.cz> <4b559d1d-31e4-6049-4548-451bf7afb4f4@huaweicloud.com> <20230105104241.GA16920@blackbody.suse.cz> From: Yu Kuai Message-ID: <6f54c858-be91-0fd3-d377-1aabb8a70c6f@huaweicloud.com> Date: Thu, 5 Jan 2023 21:52:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20230105104241.GA16920@blackbody.suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgD3X7Me1rZjMeqZBA--.54696S3 X-Coremail-Antispam: 1UD129KBjvdXoW7Jr18WF4UJF1rGFW3XryxXwb_yoW3Xrb_uF 1UGry2kw45W3Z5Za17JrWrXFykC348JFyUZF93C3y5Zr1UZrZ7GFn8JFyfGw1UCwnaqr9F krsxJF40yrWSvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb3kFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_ Gr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxan2IY 04v7Mxk0xIA0c2IEe2xFo4CEbIxvr21l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7 v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF 1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIx AIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0D MIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIda VFxhVjvjDU0xZFpf9x0JUdHUDUUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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 Hi, 在 2023/01/05 18:45, Michal Koutný 写道: > On Thu, Jan 05, 2023 at 09:43:02AM +0800, Yu Kuai wrote: >> This is based only on code review, currently the only negative effects >> is that root blkg from blk-throtl won't call pd_online_fn(). > > Good, that's a NOP and there are no other uses of pd_online_fn. > > I wonder are the separate pd_init_fn and pd_online_fn callbacks > necessary today? I think online can combine to init, consider that only blk-throttle implement pd_online_fn(), but I'm not sure... It seems to me the policies(bfq, iocost...) seem don't honor how pd apis works: alloc->init->online->offline->free, bfq combines online to init, iocost combines offline to free, ... Thanks, Kuai