From patchwork Thu Mar 30 12:54:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenchao Hao X-Patchwork-Id: 77173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1119349vqo; Thu, 30 Mar 2023 06:16:46 -0700 (PDT) X-Google-Smtp-Source: AKy350aodxSrYOZOfbMnOArt7lGz4Bl8VwFNXZTEYLHVn/mEAFZOkn/YTyLVItZv/W2eXgoDcEKl X-Received: by 2002:a17:902:ce86:b0:1a1:cef9:cc5c with SMTP id f6-20020a170902ce8600b001a1cef9cc5cmr29020831plg.15.1680182206034; Thu, 30 Mar 2023 06:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680182206; cv=none; d=google.com; s=arc-20160816; b=rxMmqmBLMyrgcj+entc74Jlo7s2aErNh+WqRN1qvqGt+3+gx+VnzWWw29GtgXqjSxT y59zsbYi9IqZKofYDEidTWuG7Ux9jRSe//ebZmSmIc+wZhLnuBcoOA1DXc0er5hjN5L8 +YHUb4GCV76MCCCzhjxj0+3cwU3viCqN5PbuRsCPJOm2qGwTUiyQp14vrDaIDptHoT1x ybmNqWTEddEk9LSBgwCWucFMFevBDjN8HzLlK/JCcWybnEYwOAin7MaNXL4PxjvhnjXL OtRuKJ4JLHajwhm+r4RDmaT0hKmcSO76v0Jd8iOkw3Ro3uRdE+/XjPFmSS4OnbYaXyz/ 36PQ== 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=ZdiUpBGTuy7/nVZXyNTYaM1WpidZsp+qqgoyrtPRsv8=; b=CNOrF/prut4MSmkxE4WmwE1+a0i6U/wT1m1qHPgeA2nm3Uttmz6DY08DIUIk43yOqf iwSvDpRJHsUO3MbTS68SN5HaFlDx3FOUE+WqfthK4lTEZeZe8WDmCFpGtWBfMAhWbMZq YMVGTB+XpC+tPc2+Iyn10XeiKdNaUydiH17u/boBn9QIaPr28dQcElsgWcsuPtcq7F4C g4yoatmXu91HVdcFCdJJQrdZR2Y1a9Td27HwKMuX3rSTLUI9k1IqMdO3gcoI4JxNouyz RMJKl1cs3H0m/uREv7chSd7GdpJV7wpEoT4tqWUxpwOad2DBZAjiOXdVsujJgyddjesq k+Lg== 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 u11-20020a170903124b00b0019b090e497esi12504748plh.298.2023.03.30.06.16.32; Thu, 30 Mar 2023 06:16:46 -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 S231627AbjC3MzB (ORCPT + 99 others); Thu, 30 Mar 2023 08:55:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjC3My7 (ORCPT ); Thu, 30 Mar 2023 08:54:59 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 780FF44B8; Thu, 30 Mar 2023 05:54:58 -0700 (PDT) Received: from kwepemm600012.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4PnNbH4DGMz17QBR; Thu, 30 Mar 2023 20:51:39 +0800 (CST) Received: from build.huawei.com (10.175.101.6) by kwepemm600012.china.huawei.com (7.193.23.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 30 Mar 2023 20:54:56 +0800 From: Wenchao Hao To: Jens Axboe , , CC: , , Subject: [PATCH] blk-mq: rename blk_complete_request to blk_end_request Date: Thu, 30 Mar 2023 20:54:02 +0800 Message-ID: <20230330125402.764676-1-haowenchao2@huawei.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600012.china.huawei.com (7.193.23.74) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1761798737123586183?= X-GMAIL-MSGID: =?utf-8?q?1761798737123586183?= The name blk_complete_request makes people wonder whether it is a variant of blk_mq_complete_request, but there is actually no relationship between them. So rename blk_complete_request to blk_end_request to make it more appropriate. Signed-off-by: Wenchao Hao --- block/blk-mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index cf1a39adf9a5..0aa9fd9aacb6 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -824,7 +824,7 @@ static void blk_print_req_error(struct request *req, blk_status_t status) * Fully end IO on a request. Does not support partial completions, or * errors. */ -static void blk_complete_request(struct request *req) +static void blk_end_request(struct request *req) { const bool is_flush = (req->rq_flags & RQF_FLUSH_SEQ) != 0; int total_bytes = blk_rq_bytes(req); @@ -1089,7 +1089,7 @@ void blk_mq_end_request_batch(struct io_comp_batch *iob) prefetch(rq->bio); prefetch(rq->rq_next); - blk_complete_request(rq); + blk_end_request(rq); if (iob->need_ts) __blk_mq_end_request_acct(rq, now);