diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2007-07-20 12:10:05 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-20 13:29:07 -0400 |
commit | b6aff66953a29e40e0683be9b39c369ade143a5b (patch) | |
tree | cf46848d871cc9a7e8ca9ab662aae313b23467f2 /include | |
parent | e7cbff13ec1f236a3f8341c503a2e1bd0cf692e5 (diff) |
[SCSI] scsi_transport_sas: add destructor for bsg
There's currently no destructor for the bsg components. If you insert
and remove the module, you see the bsg devices building up and up. This
patch adds the destructor in the correct place in the transport class so
that the bsg and request queue are removed just before the device
destruction.
Acked-by: FUJITA Tomonori <tomof@acm.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_transport_sas.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h index af304fb9d979..abdfd2e27dd7 100644 --- a/include/scsi/scsi_transport_sas.h +++ b/include/scsi/scsi_transport_sas.h | |||
@@ -91,10 +91,12 @@ struct sas_phy { | |||
91 | #define phy_to_shost(phy) \ | 91 | #define phy_to_shost(phy) \ |
92 | dev_to_shost((phy)->dev.parent) | 92 | dev_to_shost((phy)->dev.parent) |
93 | 93 | ||
94 | struct request_queue; | ||
94 | struct sas_rphy { | 95 | struct sas_rphy { |
95 | struct device dev; | 96 | struct device dev; |
96 | struct sas_identify identify; | 97 | struct sas_identify identify; |
97 | struct list_head list; | 98 | struct list_head list; |
99 | struct request_queue *q; | ||
98 | u32 scsi_target_id; | 100 | u32 scsi_target_id; |
99 | }; | 101 | }; |
100 | 102 | ||