Re: [PATCH 05/11] pmcraid: select first available device for target reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux