Re: [PATCH] scsi: scsi_scan purge devices no longer in reported LUN list

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

 



> but there are several cases where this is undesirable so I do not
> think the kernel should do it.
> Having userspace handle policy decisions allows for more flexibility.

Ewan, could you elaborate on this point? A volume ACL removal on the
target is not a transient disruption to access to the volume - it is
permanent and deliberate. Keeping the device data structures around on
the host paints a false picture for applications, as if those devices
are still accessible. Moreover, if a new volume is connected with the
same LUN, the old device nodes are re-used with no indication to the
application that the underlying volume has changed. As Brian showed
above, this behavior can cause corruption when devices are accessed via
multipath.

Sure, this can be avoided via a manual rescan-scsi-bus.sh -r after
removing volume ACLs. But we already have automatic scanning of the
target upon receiving the REPORTED_LUNS_DATA_HAS_CHANGED UA, and it
seems unnecessarily asymmetric for this scanning to have the ability to
create new devices but not delete old ones.

As far as policy decisions go, NVMe has in-kernel scanning which can
both add and remove devices. Is it a protocol difference that prevents
SCSI from doing the same?

Thanks,
Uday



[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