android_kernel_xiaomi_sm8350/include/scsi
James Bottomley 643eb2d932 [SCSI] rework scsi_target allocation
The current target allocation code registeres each possible target
with sysfs; it will be deleted again if no useable LUN on this target
was found. This results in a string of 'target add/target remove' uevents.

Based on a patch by Hannes Reinecke <hare@suse.de> this patch reworks
the target allocation code so that only uevents for existing targets
are sent. The sysfs registration is split off from the existing
scsi_target_alloc() into a in a new scsi_add_target() function, which
should be called whenever an existing target is found. Only then a
uevent is sent, so we'll be generating events for existing targets
only.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-04-22 15:16:31 -05:00
..
iscsi_if.h
iscsi_proto.h [SCSI] iscsi: extended cdb support 2008-04-18 11:51:19 -05:00
libiscsi.h [SCSI] libiscsi: fix session age rollover and remove cid encoding 2008-02-07 18:02:37 -06:00
libsas.h include: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:54 -04:00
libsrp.h
sas_ata.h [SCSI] libsas: fix missing inlines in header file 2008-04-07 12:19:10 -05:00
sas.h
scsi_cmnd.h [SCSI] export command allocation and freeing functions independently of the host 2008-04-07 12:18:57 -05:00
scsi_dbg.h
scsi_device.h [SCSI] rework scsi_target allocation 2008-04-22 15:16:31 -05:00
scsi_devinfo.h
scsi_driver.h
scsi_eh.h [SCSI] add scsi_build_sense_buffer helper function 2008-04-07 12:19:01 -05:00
scsi_host.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi_ioctl.h
scsi_netlink_fc.h
scsi_netlink.h
scsi_tcq.h
scsi_tgt_if.h
scsi_tgt.h
scsi_transport_fc.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi_transport_iscsi.h [SCSI] iscsi class: regression - fix races with state manipulation and blocking/unblocking 2008-03-05 12:04:09 -06:00
scsi_transport_sas.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi_transport_spi.h
scsi_transport_srp.h
scsi_transport.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi.h [SCSI] add protocol definitions 2008-02-07 18:02:41 -06:00
scsicam.h
sd.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
sg.h
srp.h