Files
kernel-eswin-eic7700/drivers/scsi
Darrick J. Wong 6f63caae21 [SCSI] libsas: Clean up discovery failure handler code
sas_rphy_delete does two things: it removes the sas_rphy from the transport
layer and frees the sas_rphy.  This can be broken down into two functions,
sas_rphy_remove and sas_rphy_free; sas_rphy_remove is of interest to
sas_discover_root_expander because it calls functions that require
sas_rphy_add as a prerequisite and can fail (namely sas_discover_expander).
In that case, sas_discover_root_expander needs to be able to undo the effects
of sas_rphy_add yet leave the job of freeing the sas_rphy to the caller of
sas_discover_root_expander.

This patch also removes some unnecessary code from sas_discover_end_dev
to eliminate an unnecessary cycle of sas_notify_lldd_gone/found for SAS
devices, thus eliminating a sas_rphy_remove call (and fixing a race condition
where a SCSI target scan can come in between the gone and found call).
It also moves the sas_rphy_free calls into sas_discover_domain and
sas_ex_discover_end_dev to complement the sas_rphy_allocation via
sas_get_port_device.

This patch does not change the semantics of sas_rphy_delete.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-01-27 10:05:15 -06:00
..
2006-12-07 08:39:25 -08:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-11-22 14:57:56 +00:00
2006-11-22 12:06:44 -06:00
2006-06-30 19:25:36 +02:00
2006-08-06 15:59:26 -05:00
2006-11-15 16:41:27 -06:00
2006-08-06 15:59:26 -05:00
2006-11-10 09:59:49 +09:00
2006-09-12 17:12:31 -05:00
2006-11-22 14:57:56 +00:00
2007-01-27 09:26:23 -06:00
2007-01-27 09:26:36 -06:00
2006-09-23 15:33:43 -05:00
2007-01-13 13:49:58 -06:00
2006-11-22 14:57:56 +00:00
2006-06-25 10:00:58 -07:00
2007-01-13 13:49:58 -06:00
2006-12-05 10:25:35 -06:00
2006-12-05 10:25:35 -06:00
2006-09-12 17:12:31 -05:00
2006-11-30 05:24:39 +01:00
2006-11-22 14:57:56 +00:00
2006-11-22 14:57:56 +00:00
2007-01-27 09:28:58 -06:00
2006-11-22 14:57:56 +00:00
2006-10-25 15:14:09 -07:00
2007-01-13 13:50:21 -06:00
2007-01-13 13:50:21 -06:00
2006-08-06 15:59:26 -05:00
2007-01-13 13:50:21 -06:00
2006-12-08 08:28:49 -08:00
2007-01-13 13:49:58 -06:00
2006-03-23 07:38:09 -08:00
2006-12-08 08:28:49 -08:00
2006-06-29 11:06:30 -04:00
2006-12-05 11:33:58 -06:00
2006-11-15 16:43:50 -06:00
2006-10-25 15:12:03 -07:00