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