All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sas: clear parent->rphy in sas_rphy_delete
@ 2006-01-11 13:20 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2006-01-11 13:20 UTC (permalink / raw)
  To: jejb; +Cc: linux-scsi

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@lst.de>

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-11 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 13:20 [PATCH] sas: clear parent->rphy in sas_rphy_delete Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.