Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4005697rwe; Tue, 30 Aug 2022 02:58:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Qxos2K8NGAheAzK3f0MFnYunUU6NOZMCi92ulynQHmJ5NrSH0jri4MFxRh6poTDfNeSRB X-Received: by 2002:a17:90a:39c9:b0:1fa:c50d:11f4 with SMTP id k9-20020a17090a39c900b001fac50d11f4mr23043102pjf.166.1661853485751; Tue, 30 Aug 2022 02:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661853485; cv=none; d=google.com; s=arc-20160816; b=S0MJroHQRmBSd+LMafMY+xGSRhxOA7u7t7flM0d+XV3FJpC3FVNbmHQ5Zz5Vzcu98h f9uPiSHoVzmhzhNP+nP/OFRwi5lY7/sV5r6vcw/EdOQgLobaa3t7SrQGOn5kadc1lOWO 95B2M2zfO0GP9ywn/1gN/v1K2bCcC9MVO73Gx7MTwC7nahwz/9oGx43OZfU3TJHRF7u1 9+MG3sNu7BIrj899Vnyg1rK3Ub8Zhkh8eLBB3Rd6M3BpObFwgnh/eT284SqrHiqlEWZk acv9XM3blYLfoMS9Ks28Xfi85EWhvMpI8B3YeUvbs/a04v6ntVvWf5D/02KrNKhbylxG ky6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=fTvhF4mm5YJkblG9yPlugHHPvT+qMy2R2OgVQg27cNY=; b=aDVPfzYMYU9LJR+gmB5WzPRw3c5icSGXCFVVvHBcosQWyv/PIAHfN8hI9TGfRXkbgq lHnhs7+d2Lf2V2a3eP8o9PF7JkTjbSWAoX7GVmdXCYmltBz5UjmUC9x03lgEb6XR5p/N qzkwN0ooK1h7TWmCs5q80RBBxszE4Z9yOwp1rJR+7f+VI5Qi4HyLiQfK1mgC+4rciqIZ XJxRET6fGr5LXl6F0LXX2tDGA3T9U4jt1VMXzX/+hp/vK+NJJDs9yP+t4hgiSTfTRrwP OoxGf1XVC5QagCLRemrQgGqpZVb7QThV7T0pBTPyTkSIXUzFXM0SiccIMjHhb25aJMxw FK1A== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a6384c8000000b0042b9b3b4daesi1683723pgd.306.2022.08.30.02.57.47; Tue, 30 Aug 2022 02:58:05 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiH3Jqb (ORCPT + 99 others); Tue, 30 Aug 2022 05:46:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiH3Jq1 (ORCPT ); Tue, 30 Aug 2022 05:46:27 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A05A8CFB; Tue, 30 Aug 2022 02:46:23 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=liusong@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0VNkne02_1661852747; Received: from localhost(mailfrom:liusong@linux.alibaba.com fp:SMTPD_---0VNkne02_1661852747) by smtp.aliyun-inc.com; Tue, 30 Aug 2022 17:46:21 +0800 From: Liu Song To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH] blk-mq: change bio_set_ioprio to inline Date: Tue, 30 Aug 2022 17:45:46 +0800 Message-Id: <1661852746-117244-1-git-send-email-liusong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 From: Liu Song Change "bio_set_ioprio" to inline to avoid calling overhead. Signed-off-by: Liu Song --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index c96c8c4..a17bc83 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2766,7 +2766,7 @@ static inline struct request *blk_mq_get_cached_request(struct request_queue *q, return rq; } -static void bio_set_ioprio(struct bio *bio) +static inline void bio_set_ioprio(struct bio *bio) { /* Nobody set ioprio so far? Initialize it based on task's nice value */ if (IOPRIO_PRIO_CLASS(bio->bi_ioprio) == IOPRIO_CLASS_NONE) -- 1.8.3.1