Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3472794pxa; Wed, 26 Aug 2020 00:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxcciQr+xNCXxiSIHuUAI4owDompXI3DnStOxfokE38xNRYEVpskOCeccfG0HmdY/nX3+O X-Received: by 2002:a05:6402:17b0:: with SMTP id j16mr13904248edy.24.1598428568068; Wed, 26 Aug 2020 00:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598428568; cv=none; d=google.com; s=arc-20160816; b=q/vtCwRyZRD4XkYtbgFB7oF2623Ybbetu+gpppTKnTO7wzTd3tV2BbLMNTPlanUHa3 3zOphbrYsfR1mXyBKvLiTepvHmZf7ypuVjS+5qXabY7Wwbq/QsAKfVAtxogR6pCdyJTZ 7mXLYYIOluGUIetOkk2ZzTGocSf3Vkwr1bH8pnFKtkvPsC4/9dMzAQdSIqbTUrjXq9TB qfMY85uRmCYrh2Z/UmiT3xthuYX91MQ7cQ7ZMq7s0DX91iFIzMlNZaAgavlWpogw395l mHphtSlel9jMcRKv8vi/Y3emY+syKXATaWaPLXKRA/MdID8qTdFPA6NJ/z1uqAvi9ehu loaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=Rsx12nnAyQ3QxwIcwvaceI4oB8JYIXrfJOQ3sfE+ifs=; b=EWrI7X7AH8T1kQvEgKkZVTQhhpz4moxxwlMk2foxpntCyrpb2CGV47I+CmUpfXTsH1 r1hBJHFdiYpt4hyYlDRZn79GDuzY/NVXdX1aWRB4SpkVaexckO/MsYqCxdesQSL5TV5h 8qMHXGOk+HPVgtPKXHIaDl+zoSXTFsH3N4Mq/9aek0vfaUzJ2vCtCRDl1I2gB93tC1v/ XDthK+qOLGh+V6BUv2RIEvE1xG8oTgLnv7ErISWILvqPD2i03ORB79lesTDoi6KqMUrX rbNK3RYgvZQfukX+kRv2MBJ/T84hj4W3vjnzh6bfeNyo09A1z9U0g+rQhFZ+OgEqRIdW tNug== 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 s25si933225edr.590.2020.08.26.00.55.45; Wed, 26 Aug 2020 00:56:08 -0700 (PDT) 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 S1726740AbgHZHzQ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Aug 2020 03:55:16 -0400 Received: from smtp.h3c.com ([60.191.123.56]:38647 "EHLO h3cspam01-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgHZHzP (ORCPT ); Wed, 26 Aug 2020 03:55:15 -0400 Received: from h3cspam01-ex.h3c.com (localhost [127.0.0.2] (may be forged)) by h3cspam01-ex.h3c.com with ESMTP id 07Q63jcv060453; Wed, 26 Aug 2020 14:03:45 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX08-IDC.srv.huawei-3com.com ([10.8.0.71]) by h3cspam01-ex.h3c.com with ESMTPS id 07Q62tCU058786 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Aug 2020 14:02:56 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) by DAG2EX08-IDC.srv.huawei-3com.com (10.8.0.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 26 Aug 2020 14:02:58 +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.1713.004; Wed, 26 Aug 2020 14:02:58 +0800 From: Tianxianting To: Ming Lei CC: "axboe@kernel.dk" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag Thread-Topic: [PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag Thread-Index: AQHWe06EoNdwEm3z5kubymyHs5tnf6lJRjMAgACeIyA= Date: Wed, 26 Aug 2020 06:02:57 +0000 Message-ID: <3321aa16ad214cb1a0a5cda1309f0e45@h3c.com> References: <20200826020651.9856-1-tian.xianting@h3c.com> <20200826042918.GA116347@T590> In-Reply-To: <20200826042918.GA116347@T590> 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: h3cspam01-ex.h3c.com 07Q62tCU058786 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ming Lei Thanks for your quick comment. As the function request_to_qc_t() in 'include/linux/blk-mq.h ' used the magic '-1', Seems it is hard to replace it with BLK_MQ_NO_TAG :( -----Original Message----- From: Ming Lei [mailto:ming.lei@redhat.com] Sent: Wednesday, August 26, 2020 12:29 PM To: tianxianting (RD) Cc: axboe@kernel.dk; linux-block@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag On Wed, Aug 26, 2020 at 10:06:51AM +0800, Xianting Tian wrote: > Replace various magic -1 constants for tags with BLK_MQ_NO_TAG. > And move the definition of BLK_MQ_NO_TAG from 'block/blk-mq-tag.h' > to 'include/linux/blk-mq.h' All three symbols are supposed for block core internal code only, so looks you shouldn't move them to public header. Thanks, Ming