On 5/3/22 09:24, Bart Van Assche wrote:
On 5/2/22 14:54, Hannes Reinecke wrote:
As we're moving away from using a scsi command as argument for
eh_XX callbacks we should be selecting the first available device
^^^^^^^^^
for sending a target reset to.
Please explain in the commit message why selecting the first available
device is the right approach.
That's due to the firmware interface of the pmcraid HBA.
All commands require a LUN number to be specified, so we need to select
the first available drive on the bus to get a valid LUN.
It _might_ be that LUN 0 _could_ be sufficient here, but that would be
change in behaviour and hard to validate. So this patch mimics the
original behaviour to always fill in a valid LUN.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer