From patchwork Mon Nov 28 15:44:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Nan X-Patchwork-Id: 2317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5748757wrr; Mon, 28 Nov 2022 07:26:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5va5U8wBSflzxm8UwOYtc6xmfwD9ssDfxBhDRab3PVU3zMTHDlXxJ1YBaYVxDZ7gmp150Q X-Received: by 2002:aa7:c3c9:0:b0:469:1342:2ad with SMTP id l9-20020aa7c3c9000000b00469134202admr37051220edr.180.1669649169704; Mon, 28 Nov 2022 07:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669649169; cv=none; d=google.com; s=arc-20160816; b=zQcsxPFoh35aHvcA0VkaEAaKPpK3lWGgoZGb/gdiTKS/ebo9M5yfB1ocPmLOQYi5RA +vAjsNvlB5QpOXHVCagK67CjRXydk3KYjq6Gt1NRQXo0yos+IIRwsqibGHbnrv05DfSE ZhHrwXn36NglNPZqMNo++6no51Scp8cTsLx98SjltJy3YJkRqCOirmVGjzG+9333jTs8 dT0eVqDxZd2ErJVnSQUPHo/b7X7L8TUqrLB24bblYX0NNzRHGoz4NrSvvWmq+H05mABt UYlw29QlknrEl5Eifmv+/S1yB7o1prFOp+V7eDwqM7u3YAMrkuweHGouhUFhHCYDOH1e TFzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8ANZ1ODQzriGg8XOUQJiHjEJLWh9pu359xwSDZOtV10=; b=FonDJRoYz6q3d/qXWlAM68LS9Qwa2LZq7/G9MfmdFOSXcWpe/vZq5P86kxDNvQ6rmT eUkCHtCin+19/6v6+2Lm7Dpwzidt83x72arSk6nK06clmHIkiPVlpjhQNBWHffUHscOS FrcAlEM/vi7zQRjAP5dd9sJHlVvrEVCMsx2ElMA1f8qpy8OlJH8TTW+CdsfM6JCVdiva Bk8rapUqqfOgMJ47X5MoGGkXpM9H1lQNA60njEWmHH3+cFFLjKa3AGfUjFGAYkBsO2Zc TN1Yk/qplR0l4TYqIKkdrrnE6WAH2brOHyjgueMCyOE4gVT4AOaXos/phO11T9H1kiBy OExw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a170906340d00b007b2a3ee2d2asi7771893ejb.703.2022.11.28.07.25.45; Mon, 28 Nov 2022 07:26:09 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbiK1PXc (ORCPT + 99 others); Mon, 28 Nov 2022 10:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbiK1PXa (ORCPT ); Mon, 28 Nov 2022 10:23:30 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B5DFDF5; Mon, 28 Nov 2022 07:23:29 -0800 (PST) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NLTf60YLQzqSfN; Mon, 28 Nov 2022 23:19:26 +0800 (CST) Received: from dggpeml500003.china.huawei.com (7.185.36.200) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 23:23:26 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500003.china.huawei.com (7.185.36.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 23:23:26 +0800 From: Li Nan To: , , CC: , , , , , Subject: [PATCH -next 0/8] iocost bugfix Date: Mon, 28 Nov 2022 23:44:26 +0800 Message-ID: <20221128154434.4177442-1-linan122@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500003.china.huawei.com (7.185.36.200) 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750754047489379689?= X-GMAIL-MSGID: =?utf-8?q?1750754047489379689?= This patchset fixes problem in iocost. It contains Yu Kuai's patchset he sent before because of conflicts. Li Nan (4): blk-iocost: fix divide by 0 error in calc_lcoefs() blk-iocost: change div64_u64 to DIV64_U64_ROUND_UP in ioc_refresh_params() blk-iocost: fix possible UAF in ioc_pd_free block: fix null-pointer dereference in ioc_pd_init Yu Kuai (4): blk-iocost: cleanup ioc_qos_write() and ioc_cost_model_write() blk-iocost: improve hanlder of match_u64() blk-iocost: don't allow to configure bio based device blk-iocost: read params inside lock in sysfs apis block/blk-iocost.c | 114 ++++++++++++++++++++++++++++----------------- block/genhd.c | 2 +- 2 files changed, 73 insertions(+), 43 deletions(-)