From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [PATCH v2 02/12] blk-mq: Add blk_mq_unique_tag() Date: Mon, 13 Oct 2014 11:21:54 +0200 Message-ID: <543B99B2.1010307@acm.org> References: <5433E43D.3010107@acm.org> <5433E493.9030304@acm.org> <20141011110841.GA9593@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141011110841.GA9593@infradead.org> Sender: linux-scsi-owner@vger.kernel.org To: Christoph Hellwig Cc: Jens Axboe , Sagi Grimberg , Sebastian Parschauer , Robert Elliott , Ming Lei , "linux-scsi@vger.kernel.org" , linux-rdma List-Id: linux-rdma@vger.kernel.org On 10/11/14 13:08, Christoph Hellwig wrote: >> +static inline u32 blk_mq_build_unique_tag(int hwq, int tag) >> +{ >> + return (hwq << BLK_MQ_UNIQUE_TAG_BITS) | (tag & BLK_MQ_UNIQUE_TAG_MASK); >> +} > > Is there any value in having this as a separate helper? Hello Christoph, With the approach for block layer tag management proposed in this patch series SCSI LLDs no longer need to call this function. This means that the blk_mq_build_unique_tag() function can be eliminated by inlining it into blk_mq_unique_tag(). Would you like me to rework this patch accordingly ? Bart.