Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp204488lqq; Wed, 12 Jun 2024 23:54:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH763L0plJGNbHDyJ3nWpK9vLBa0N78fuY9JzcHuOELwOO3aN31PG52EBAHS4j0wJwqAKUBZZ4zGMjKZEOJHTBGSVktVaZgFWg14ubqw== X-Google-Smtp-Source: AGHT+IEBuY4fLvU7WYffeGZYjBwzsXODdPbb9hjj24sdnQk6xG8oGwucxNXwNxEKJ0SKohk6IqRf X-Received: by 2002:a05:620a:3183:b0:797:7bb4:bc55 with SMTP id af79cd13be357-797f60c036amr423804985a.47.1718261650249; Wed, 12 Jun 2024 23:54:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718261650; cv=pass; d=google.com; s=arc-20160816; b=tsJHybB0VfJScD3rfNjEnCSltrcdmZLjkjrVMaSBAH8JUHbpeFfFXSJd0zyJTIcKY/ YsDnEK9O2iM5Ni3Hz03hreaVnge5lTAaZzrntscr36apnRcOpCZc2Pk8o3WaNmDESUQU DWZdhiDtzMBSJGfTqluv9wiUCXblvKTiDj3LmziuXOfaXV6ubZxYKwlyIBIukK7tttVU b0QJ6tbNCfY8XE3n1HPp9X4qf9OuaM6nqDoifs5tYDQTJPg9hT3f0FDi69NXpQWSEH0C qzZwyWaX7+jnMLaN1DbgCwhlDxw4jLC88BTlXGvSqRcmLJ0+NDXhyI59kcvMrOPNMRzs H06g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=tj40gRi/BhXRt6obLd7K9XtRyWHFd5eY8py9JrWnC6w=; fh=8nuov8aXiPj2td6PuvXzgxP/BPRFOzhTac7mudDOPs0=; b=ER3gligGHDWbAkAUrK9S7EPMmq4QKI2xd4U7xhdKC4ThUBKr6NgZ36wcHSBcF0jw+v 0tQQugODi4MhMWSo1jPVPspVxLUyb/QmPPY8pz+z8RXpU/kf6xcZIR9J+/3iZPTbUA2Y NRsiXrO4wcxsKW0b1Vj8h1NX/uAWmeKgDHvKcZ41itWWpHDGkJ9AlyT/2yuaAx0WFd4L BQIFpp23aNmrd7IU3PLDAXE//OqNWj4NSEi/SrqP1rVofKZL7IkAKfpMINBCBgvpBEOF bYmeUbVazETI/6WIGNv3uw4CAsY2WpeCWKJ5cG4YOI8ccdYVu4vOj69Sotkpf5gCfnzC /qJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-212659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212659-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2ea8ec2si8196021cf.370.2024.06.12.23.54.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-212659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212659-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F40F71C20941 for ; Thu, 13 Jun 2024 06:54:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 681EA137C2E; Thu, 13 Jun 2024 06:53:59 +0000 (UTC) Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73589130485; Thu, 13 Jun 2024 06:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718261638; cv=none; b=FTVSwp0NxW18e4qI9PmAGUloBR7l/tOKPx6LIk+1ZHibDPnBlcbUnMbMqs0kDo9fmlAD2vF4kw6j95WqrkJEOp+TkD8pnxIlVJ/4/VenblD6pDdKPh0/HiNcAEaxnofxqWU7T03ogOFKFjzLxyKdtz9ew7bcij56Mj0jLdhxSDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718261638; c=relaxed/simple; bh=P3BRiGgLtUo6sBjPMfZWxPOYw2HDqNhnljGcJWYo36w=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=CF7z4/UxPdnSOyVmTJ1clKGMh5tRWrAtD2wDf4+8kouVSetuE3g2317Uy6zaC0DZqKymT3i/kMgTuY+PrJxCwjHAmrhzsLQmj/AOvzM+lHHWp6y8ManWUOAejX6YHbUaSf0dIM4ZHPZ3edqRC671RGtAwVp0ljLzVpsiovWUIc0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4W0Cmj1Q7sz4f3m78; Thu, 13 Jun 2024 14:53:41 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id AE4E61A0FBD; Thu, 13 Jun 2024 14:53:52 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgBHGBF+l2pmLWhmPQ--.2534S3; Thu, 13 Jun 2024 14:53:52 +0800 (CST) Subject: Re: [PATCH RFC -next 0/7] blk-iocost: support to build iocost as kernel module To: Greg KH , Yu Kuai Cc: axboe@kernel.dk, tj@kernel.org, josef@toxicpanda.com, lizefan.x@bytedance.com, hannes@cmpxchg.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20240613014937.1326020-1-yukuai1@huaweicloud.com> <2024061342-walk-cavalier-7e48@gregkh> From: Yu Kuai Message-ID: <278e27fd-ff5f-660a-5173-b0cff6c55821@huaweicloud.com> Date: Thu, 13 Jun 2024 14:53:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <2024061342-walk-cavalier-7e48@gregkh> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgBHGBF+l2pmLWhmPQ--.2534S3 X-Coremail-Antispam: 1UD129KBjvdXoW7JF4DCF47Xry8XF47GryDZFb_yoWDZrc_u3 WkJryI9rnrGF4Iyw4ktFsavFZrWF4rCrWqy348XFW2qF1FyFsFyws3ZrZ5ZFn8tF17GF95 ury3ZFyv9Fy7WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUba8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2kI c2xKxwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4 AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE 17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMI IF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq 3wCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcS sGvfC2KfnxnUUI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ Hi, ?? 2024/06/13 13:54, Greg KH ะด??: > On Thu, Jun 13, 2024 at 09:49:30AM +0800, Yu Kuai wrote: >> From: Yu Kuai >> >> Yu Kuai (7): >> kernfs: export pr_cont_kernfs_path() >> cgroup: export cgroup_parse_float >> block: export some API >> blk-iocost: factor out helpers to handle params from ioc_qos_write() >> blk-iocost: parse params before initializing iocost >> blk-iocost: support to free iocost >> blk-iocost: support to build iocost as kernel module > > No where do you say _why_ building this as a module is a good idea. Yes, we discussed this before and this is actually an general question. Main advantages are: - Flexibility and Maintainability, allows for dynamic loading and unloading of modules at runtime without the need to recompile and restart the kernel, for example fixing iocost CVE in our production environment. - Kernel Size and Resource Usage, modules are loaded only when their specific functionality is required. Thanks, Kuai > > Why do this at all? > > thanks, > > greg k-h > > . >