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
..
2008-04-07 12:19:08 -05:00
2008-01-11 18:22:30 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-04-07 12:15:39 -05:00
2008-01-30 13:14:02 -06:00
2008-01-11 18:27:59 -06:00
2008-01-30 13:03:40 -06:00
2008-01-30 13:14:02 -06:00
2008-03-28 12:32:22 -05:00
2008-01-30 13:14:02 -06:00
2008-01-23 13:44:31 -06:00
2008-01-30 13:14:02 -06:00
2007-10-19 11:53:42 -07:00
2008-04-17 12:59:21 -05:00
2008-01-30 13:14:02 -06:00
2008-02-23 09:07:32 -06:00
2008-04-07 12:19:10 -05:00
2007-07-18 11:16:32 -05:00
2008-02-07 18:02:44 -06:00
2008-01-30 13:14:02 -06:00
2007-10-19 23:22:55 +02:00
2008-01-30 13:14:02 -06:00