From: Christoph Hellwig <hch@lst.de>
To: jejb@steeleye.com
Cc: linux-scsi@vger.kernel.org
Subject: [PATCH] sas: clear parent->rphy in sas_rphy_delete
Date: Wed, 11 Jan 2006 14:20:43 +0100 [thread overview]
Message-ID: <20060111132043.GA9583@lst.de> (raw)
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);
reply other threads:[~2006-01-11 13:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060111132043.GA9583@lst.de \
--to=hch@lst.de \
--cc=jejb@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.