|
@@ -370,12 +370,16 @@ EXPORT_SYMBOL(sas_remove_children);
|
|
|
* sas_remove_host - tear down a Scsi_Host's SAS data structures
|
|
|
* @shost: Scsi Host that is torn down
|
|
|
*
|
|
|
- * Removes all SAS PHYs and remote PHYs for a given Scsi_Host.
|
|
|
- * Must be called just before scsi_remove_host for SAS HBAs.
|
|
|
+ * Removes all SAS PHYs and remote PHYs for a given Scsi_Host and remove the
|
|
|
+ * Scsi_Host as well.
|
|
|
+ *
|
|
|
+ * Note: Do not call scsi_remove_host() on the Scsi_Host any more, as it is
|
|
|
+ * already removed.
|
|
|
*/
|
|
|
void sas_remove_host(struct Scsi_Host *shost)
|
|
|
{
|
|
|
sas_remove_children(&shost->shost_gendev);
|
|
|
+ scsi_remove_host(shost);
|
|
|
}
|
|
|
EXPORT_SYMBOL(sas_remove_host);
|
|
|
|