From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v2 02/12] blk-mq: Add blk_mq_unique_tag() Date: Sat, 11 Oct 2014 04:08:41 -0700 Message-ID: <20141011110841.GA9593@infradead.org> References: <5433E43D.3010107@acm.org> <5433E493.9030304@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5433E493.9030304@acm.org> Sender: linux-scsi-owner@vger.kernel.org To: Bart Van Assche Cc: Christoph Hellwig , Jens Axboe , Sagi Grimberg , Sebastian Parschauer , Robert Elliott , Ming Lei , "linux-scsi@vger.kernel.org" , linux-rdma List-Id: linux-rdma@vger.kernel.org > +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?