Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp134993rwi; Sun, 9 Oct 2022 20:12:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6d2hrJMqN2a8KWk630Xt9NIIO1UOPXXRq6AlfsvZVs2kLRfAh9BlcbQzvt4IsZYU1xJnjg X-Received: by 2002:a63:2d05:0:b0:460:55e3:df91 with SMTP id t5-20020a632d05000000b0046055e3df91mr8255538pgt.177.1665371523140; Sun, 09 Oct 2022 20:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665371523; cv=none; d=google.com; s=arc-20160816; b=u3Vf1VvSMjODUEDl6RlRPmePaFLDkyOopESPiH612WspsS/3ptd21hu3hOty59y/RT eOWVnhoEDa2RJOAsPOrDcXAAy/zoyFM48zgv18cbVYmLZW61z35m2sERxcrkdibHD3Ox 5wgaJXwIp0u3tkQ1NBgHRhC2XsyXdAoIGAqn44iefXitO2SiFgpFMeJoUyG9iQ8b1Opu O/bzFD4GXyfgudo85wRPzqEhFe/DkS/seYKQUzVlx7ZCBqFRZNYCjvMxK2PFhs7KHPHS AW8aspxTyOHTcRigFdZJ+yn5pCB6gWr1KDH2MiPo4xliFH9FNeQB+jvTTf5nMveKJIZO sm0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=4BiOmILlzn8/BPxbCxqPE0LeU/jKXsglL9G5DSXyLQ8=; b=OVpV+ZsK8NesyXBiJn0DbFf0bsaj3iNtpqDosl7Wx7FytOyxsZXgrcB59ujcAhprBy 52z00FJnNQO46z8GGCWqyDWxGTXjSLLe8pE+3Ysj+Cb/zZH45o9NM/VLE/OOD542BtCJ E4KLnZB9cK0kz9PZqaq8gE9jau/6sqjnq0UiZO08mQyJ1iiIHOtfAdkwzB3/iqQ9T0+1 RTtkOgEnaPy66wF4TULEv4eKo88ymfh2l3kGua05PKS+fav4hkqECey50xYowL4JXK+8 n552jhRtdIhbrEPxJsEcTV0y4kDuhXWxZUrGvAZ2gQjyr8sfCYq0Fa4Gmt9cm4oeXWOL 3ATA== 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 j13-20020a056a00174d00b0052f0fa0c853si11229094pfc.241.2022.10.09.20.11.50; Sun, 09 Oct 2022 20:12:03 -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 S231230AbiJJCjT (ORCPT + 99 others); Sun, 9 Oct 2022 22:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbiJJCjH (ORCPT ); Sun, 9 Oct 2022 22:39:07 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBCB53ECDF; Sun, 9 Oct 2022 19:39:04 -0700 (PDT) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mm30H13b5zVhrg; Mon, 10 Oct 2022 10:34:39 +0800 (CST) Received: from huawei.com (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; Mon, 10 Oct 2022 10:39:01 +0800 From: Kemeng Shi To: , CC: , , , Subject: [PATCH 1/4] blk-cgroup: Remove unnecessary blk_ioprio_exit in blkcg_init_queue Date: Mon, 10 Oct 2022 10:38:56 +0800 Message-ID: <20221010023859.11896-2-shikemeng@huawei.com> X-Mailer: git-send-email 2.14.1.windows.1 In-Reply-To: <20221010023859.11896-1-shikemeng@huawei.com> References: <20221010023859.11896-1-shikemeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.178.129] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Function blk_ioprio_init only alloc blkg_policy_data which will be freed in blkg_destroy_all, so no blk_ioprio_exit is called when blk_throtl_init is failed in blkcg_init_queue. Also blk_ioprio_exit is not called in blkcg_exit_queue for the same reason. Just remove blk_ioprio_exit to keep behavior consistent. Signed-off-by: Kemeng Shi --- block/blk-cgroup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 869af9d72bcf..bc4dec705572 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1302,7 +1302,6 @@ int blkcg_init_queue(struct request_queue *q) ret = blk_iolatency_init(q); if (ret) { blk_throtl_exit(q); - blk_ioprio_exit(q); goto err_destroy_all; } -- 2.30.0