Re: [PATCH] megaraid_sas: device scan on logical target with invalid LUN ID deletes that target from the OS

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

 



Hi Christoph,

in shost, we set the max_lun to 8 during load and that is meant for
NON_RAID devices.
whereas RAID device supports only a single LUN so this patch takes care of that.

-ckp


On Thu, Mar 24, 2022 at 3:20 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Thu, Mar 24, 2022 at 02:47:11AM -0700, Chandrakanth patil wrote:
> > The megaraid_sas driver supports single LUN, that is LUN 0. And all other
> > LUNs are unsupported.
> > When a device scan on logical target with invalid lun is invoked through
> > sysfs that target itself is getting removed from the OS. So added a LUN
> > ID validation in the slave destroy to avoid the target deletion.
>
> Please set the max_lun member ins the host template isntead of papering
> over this in the driver.



-- 
Regards,
Chandrakanth Patil

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[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