Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1536269rwi; Mon, 10 Oct 2022 18:30:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EgEsy0ooNJf1lmuOT1o8TcHM/N/1afGjHchxeCP0u/P/j1FsHA7PGelnUMjQYAK+r0qeA X-Received: by 2002:a17:90a:7f85:b0:20a:ae7c:6ab4 with SMTP id m5-20020a17090a7f8500b0020aae7c6ab4mr24021494pjl.4.1665451841487; Mon, 10 Oct 2022 18:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665451841; cv=none; d=google.com; s=arc-20160816; b=F41x57smPhIpfvbjRaNKRfhKwzJrC3XzuBVJB8soY2WT5qkbGrge5jgHQdgtO8uIGT tFOqhuMPzF3M7xDmuYi37mQ3vEkhBs82wmUtC8JEiGgj6Dq8wmfhB2sIGLW5mSQn9jT7 8d+V5k+oRjtacP6JuXwThsqCAzMiJcrDsiwZw9TP+yzneZ+xNaCmzl+tP6CdQtXVbhWD DE+JJu7yN007fgHMtbBYbUvurTm3EjVfqrf9ASeF2VLbsTJw+LtKK0wgWQnx2OOfLDTx 7d6IBFx6g/4fMVDa/Gs6lAazmjvvrjdJ51T6NJYZtyPQ2TUhKs6Mo+090ODR7oYikuXv UXvA== 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=EuTZK7FqLE/S5csCvAWePUnHQyo4kJNXYeKpwIo0PMo=; b=jKT5ZoRDxTXQo3OF5Q6sG1FIrwiEciZn0UY/sEBwyo7WlucaLWbJDXC/HtDhCopKjF bF1P3rN9380d5bDCObiTsdSklIbAmOkebwuwSSOgGFU3s9r6FyQhycO2URJsJ4eiwh0T gUewN5X0D/mJhRCZLdWUTkk9NO3WwpywPrgqPYoRY3RMzk1d7NUcbfTOeKxM+JtIBh3e 7TtCD6z5bMgSZaG+6i+tewT0GJKMtPeO8Tn11ZIJCfooQ1rAdBGgyBbZjIyIC4bSruuz aOJLsBhhMpRLo+j1c2qkhNGblVE9S6/ignglljBnIQKZRhna3AA3uwfOYA1es0B7gzXI Gs4Q== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a630a15000000b0041da571906fsi14776394pgk.121.2022.10.10.18.30.29; Mon, 10 Oct 2022 18:30:41 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiJKBIF (ORCPT + 99 others); Mon, 10 Oct 2022 21:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbiJKBHs (ORCPT ); Mon, 10 Oct 2022 21:07:48 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF73C82766; Mon, 10 Oct 2022 18:07:41 -0700 (PDT) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MmcyC6vYgzwPTf; Tue, 11 Oct 2022 09:04:51 +0800 (CST) Received: from [10.174.178.129] (10.174.178.129) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 09:07:21 +0800 Subject: Re: [PATCH 2/4] blk-cgroup: correct comment for blk_alloc_queue and blk_exit_queue To: Tejun Heo CC: , , , References: <20221010023859.11896-1-shikemeng@huawei.com> <20221010023859.11896-3-shikemeng@huawei.com> From: Kemeng Shi Message-ID: Date: Tue, 11 Oct 2022 09:07:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.129] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 on 10/11/2022 4:26 AM, Tejun Heo wrote: > On Mon, Oct 10, 2022 at 10:38:57AM +0800, Kemeng Shi wrote: >> Since commit 1059699f87eb("block: move blkcg initialization/destroy into >> disk allocation/release handler"), blk_alloc_queue and blk_exit_queue is >> called directly from gendisk. Update the corresponding comment. >> >> Signed-off-by: Kemeng Shi >> --- >> block/blk-cgroup.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c >> index bc4dec705572..463c568d3e86 100644 >> --- a/block/blk-cgroup.c >> +++ b/block/blk-cgroup.c >> @@ -1259,7 +1259,7 @@ static int blkcg_css_online(struct cgroup_subsys_state *css) >> * blkcg_init_queue - initialize blkcg part of request queue >> * @q: request_queue to initialize >> * >> - * Called from blk_alloc_queue(). Responsible for initializing blkcg >> + * Called from gendisk. Responsible for initializing blkcg > > Maybe be a bit more specific and say blk_alloc_disk()? Thanks for review. I will update this in next version. > >> * part of new request_queue @q. >> * >> * RETURNS: >> @@ -1321,7 +1321,7 @@ int blkcg_init_queue(struct request_queue *q) >> * blkcg_exit_queue - exit and release blkcg part of request_queue >> * @q: request_queue being released >> * >> - * Called from blk_exit_queue(). Responsible for exiting blkcg part. >> + * Called from gendisk. Responsible for exiting blkcg part. > > Ditto. > -- Best wishes Kemeng Shi