We need to clear the backpointer on rphy removal, else we'll run into problems with host removal after a device has been hot unplugged. Signed-off-by: Christoph Hellwig <hch@xxxxxx> Index: scsi-misc-2.6/drivers/scsi/scsi_transport_sas.c =================================================================== --- scsi-misc-2.6.orig/drivers/scsi/scsi_transport_sas.c 2006-01-06 14:45:03.000000000 +0100 +++ scsi-misc-2.6/drivers/scsi/scsi_transport_sas.c 2006-01-06 14:45:31.000000000 +0100 @@ -707,6 +707,8 @@ list_del(&rphy->list); spin_unlock(&sas_host->lock); + parent->rphy = NULL; + put_device(&parent->dev); } EXPORT_SYMBOL(sas_rphy_delete); - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html