From patchwork Mon Jan 16 09:51:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13102487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 408D8C3DA78 for ; Mon, 16 Jan 2023 01:53:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231751AbjAPBxb (ORCPT ); Sun, 15 Jan 2023 20:53:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231735AbjAPBx3 (ORCPT ); Sun, 15 Jan 2023 20:53:29 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3217D44B4; Sun, 15 Jan 2023 17:53:27 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4NwFRN4hyZz4f3nTH; Mon, 16 Jan 2023 09:53:20 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgD3rbERrsRj9iw3Bw--.37368S2; Mon, 16 Jan 2023 09:53:23 +0800 (CST) From: Kemeng Shi To: jack@suse.com, damien.lemoal@opensource.wdc.com, paolo.valente@linaro.org, axboe@kernel.dk Cc: hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/8] A few bugfix and cleancode patch for bfq Date: Mon, 16 Jan 2023 17:51:45 +0800 Message-Id: <20230116095153.3810101-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-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0VnQUUUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi, this series contain two patches to fix bug in request injection mechanism and some random cleancode patches. Thanks! --- V4: -Thanks Jan and Damien for review. Collect Reviewed-by from Jan and Damien. Now all patches get Reviewed-by tag. -Make patches based on latest code and fix conflicts of patch 1/8 "block, bfq: correctly raise inject limit in bfq_choose_bfqq_for_injection" and 5/8 "block, bfq: remove unnecessary dereference to get async_bfqq" --- V3: -Thanks Jan for review. Remove unnecessary brace in patch "block, bfq: remove unnecessary goto tag in bfq_dispatch_rq_from_bfqq" according to recommend from Jan and collect Reviewed-by tag from Jan for rest patches. -Drop patch "block, bfq: remove redundant bfqd->rq_in_driver > 0 check in bfq_add_request" and "block, bfq: remove check of bfq_wr_max_softrt_rate which is always greater than 0". --- v2: -improve git log. --- Kemeng Shi (8): block, bfq: correctly raise inject limit in bfq_choose_bfqq_for_injection block, bfq: remove unsed parameter reason in bfq_bfqq_is_slow block, bfq: initialize bfqq->decrease_time_jif correctly block, bfq: use helper macro RQ_BFQQ to get bfqq of request block, bfq: remove unnecessary dereference to get async_bfqq block, bfq: remove redundant check in bfq_put_cooperator block, bfq: remove unnecessary goto tag in bfq_dispatch_rq_from_bfqq block, bfq: remove unused bfq_wr_max_time in struct bfq_data block/bfq-iosched.c | 40 +++++++++++++++------------------------- block/bfq-iosched.h | 2 -- 2 files changed, 15 insertions(+), 27 deletions(-)