From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/2] IB/srp: Fix SCSI scanning Date: Mon, 20 Jun 2011 07:37:36 -0400 Message-ID: <20110620113736.GA406@infradead.org> References: <201106191348.24122.bvanassche@acm.org> <1308504469.14467.5.camel@obelisk.thedillows.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org To: Bart Van Assche Cc: David Dillow , linux-scsi@vger.kernel.org, linux-rdma@vger.kernel.org, Roland Dreier , Brian King List-Id: linux-rdma@vger.kernel.org We really shouldn't require workaround for this in every SCSI driver. scsi_scan_host_selected already makes sure never to scan above shost->max_channel. Could it be that you don't have that one set properly in the srp driver? It not we'll need to debug why it happens instead of adding hacks like this.