On Mon, 14 Mar 2016, Christoph Hellwig wrote:
On Mon, Mar 14, 2016 at 03:27:14PM +1100, Finn Thain wrote:
The driver has a limit of eight LUs because of the byte-sized bitfield
that is used for busy flags. Reject commands with LUN > 7.
Please just set the max_lun parameter in the host template, which will
take care of this.
The reason I didn't do that initially was that I could not convince myself
that all command submission paths would enforce the shost->max_lun limit.
But I'll take your word for it.
I don't think the host template is the right place for this (there are
about ten of these that would need to be changed anyway) because
scsi_host_alloc() assigns shost->max_lun = 8. So I'll add the
instance->max_lun = 7 assignment to NCR5380_init().
--
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html