From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v2 12/12] IB/srp: Add multichannel support Date: Fri, 17 Oct 2014 04:06:27 -0700 Message-ID: <20141017110627.GD7819@infradead.org> References: <5433E43D.3010107@acm.org> <5433E585.607@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5433E585.607@acm.org> Sender: linux-scsi-owner@vger.kernel.org To: Bart Van Assche 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 > } else { > + if (blk_mq_unique_tag_to_hwq(rsp->tag) != ch - target->ch) > + pr_err("Channel idx mismatch: tag %#llx <> ch %#lx\n", > + rsp->tag, ch - target->ch); > scmnd = scsi_host_find_tag(target->scsi_host, rsp->tag); Shouldn't we do this validity check inside scsi_host_find_tag, so that all callers get it? That means adding an argument to it, but there are very few callers at the moment.