Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4688050pxu; Thu, 10 Dec 2020 03:04:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQf2O18s2ai5DV9rKGQx+6PJlRdPghDCB9BMIG49z9V4zRnYwnb0VXLQ3PJuC16Gq5V/Ec X-Received: by 2002:a50:c3c5:: with SMTP id i5mr6193929edf.166.1607598282556; Thu, 10 Dec 2020 03:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607598282; cv=none; d=google.com; s=arc-20160816; b=bBAQYIdQvIFQ4GFZOWTDDIhlAb1FxrfCoQ21Nj2CpgIu9lUJqVeMsXKDaxCro8EXbs ydG3LIPsmWfmsz0GZaY9a55ohU9AdGoB+KO4GNGW52rhSs9o4nICR/XPmGpBXHAGwLNi McDX9/PBdDqNpv6ozWdtbR2CH8JxENhpahONL31pIRmgbHbvg9Ml9f5A8T3Yi78n7bWS ryxK9eQrcf7QxoXj+VK3NyYmjpGxt2SHUIFwNl/DRn65mrfb3u00k7duOHg/1Gofxz86 pM5Ca8lywQecqIIhsBhDZOU7Yxlz1Gk0/Ce/rjNmdmjuMNJFLt1JTbxC3bdPLS0i1JGe XKbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=9BZz+lYes3NcdRdxW7/snRx3hrkajRXRPEoYv3ysh+0=; b=dJX4C0QgpzH3eXT111zqz+HRB+o373QElkdAdIo8yOgk1/vTVC27d8AKUTdF2RY+Y1 CTCC61DjtoYxuYBc+46NQleTib3Hy+OXM6eGrPvtIToXW1rwE1EULUhNljLfAMlUsoJ6 56IdJeRENc2hQwv1bpb/chtj0ZbyM50nsnD6hCnhbU0KjjGK7pYErOc+DhM4bROpMvYl KI7NVCiY1YVkjPY0K/N67ZaxGk94AgDsPeBkQtEZ06stDpdVbu3ML1844Ke2H6sfRVZ5 XJangyREsdiFxnwTB8bChgd48uVDNF4AXZ5N6NwG4BtYNwExHTwBWBY77OWKF/EgZE9p oOWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si2612460edx.275.2020.12.10.03.04.19; Thu, 10 Dec 2020 03:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733252AbgLJGZY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 Dec 2020 01:25:24 -0500 Received: from smtp.h3c.com ([60.191.123.50]:27402 "EHLO h3cspam02-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733186AbgLJGZY (ORCPT ); Thu, 10 Dec 2020 01:25:24 -0500 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([10.8.0.66]) by h3cspam02-ex.h3c.com with ESMTP id 0BA6NNs7051288; Thu, 10 Dec 2020 14:23:23 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) by DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 10 Dec 2020 14:23:25 +0800 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074]) by DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074%7]) with mapi id 15.01.2106.002; Thu, 10 Dec 2020 14:23:25 +0800 From: Tianxianting To: Chaitanya Kulkarni , "axboe@kernel.dk" CC: "ming.lei@redhat.com" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] [v2] blk-mq-tag: make blk_mq_tag_busy() return void Thread-Topic: [PATCH] [v2] blk-mq-tag: make blk_mq_tag_busy() return void Thread-Index: AQHWzroykh4+9vclPkq1LnwbeddRv6nv3B4Q Date: Thu, 10 Dec 2020 06:23:24 +0000 Message-ID: References: <20201210055307.1024-1-tian.xianting@h3c.com> In-Reply-To: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.141.128] x-sender-location: DAG2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 0BA6NNs7051288 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yes, Sorry, In V2. I missed it, so I sent v3 :) -----Original Message----- From: Chaitanya Kulkarni [mailto:Chaitanya.Kulkarni@wdc.com] Sent: Thursday, December 10, 2020 2:21 PM To: tianxianting (RD) ; axboe@kernel.dk Cc: ming.lei@redhat.com; linux-block@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] blk-mq-tag: make blk_mq_tag_busy() return void On 12/9/20 22:06, Xianting Tian wrote: > As no one cares about the return value of blk_mq_tag_busy() and > __blk_mq_tag_busy(), so make them return void. > > Other change is to simplify blk_mq_tag_idle(). > > Signed-off-by: Xianting Tian > Reviewed-by: Ming Lei > --- > block/blk-mq-tag.c | 4 ++-- > block/blk-mq-tag.h | 16 ++++++---------- > 2 files changed, 8 insertions(+), 12 deletions(-) > > diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index > 9c92053e7..21ff7d156 100644 > --- a/block/blk-mq-tag.c > +++ b/block/blk-mq-tag.c > @@ -21,7 +21,7 @@ > * to get tag when first time, the other shared-tag users could reserve > * budget for it. > */ > -bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) > +void __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) > { > if (blk_mq_is_sbitmap_shared(hctx->flags)) { > struct request_queue *q = hctx->queue; @@ -36,7 +36,7 @@ bool > __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) > atomic_inc(&hctx->tags->active_queues); > } > > - return true; > + return; if above return is the last statement then you need to remove that instead of using return with no value. Also, please add the version history.