Re: [PATCH] scsi: core: Cap shost cmd_per_lun at can_queue

From: Martin K. Petersen
Date: Sat May 22 2021 - 00:28:56 EST



John,

> I don't mind doing that, but is there any requirement for can_queue to
> not be limited to 16b?
>
> It seems intentional that can_queue is int and cmd_per_lun is short.

I suspect cmd_per_lun was originally chosen to be 16 bits because of FC
(SPI was 8 bits). And that it seemed unreasonable that the initiator
should be limited to what a single LUN could express. But this is all
guesswork. This code was obviously written a very, very long time ago...

--
Martin K. Petersen Oracle Linux Engineering