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.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to