[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>
This commit is contained in:
committed by
James Bottomley
parent
e7cbff13ec
commit
b6aff66953
@@ -91,10 +91,12 @@ struct sas_phy {
|
||||
#define phy_to_shost(phy) \
|
||||
dev_to_shost((phy)->dev.parent)
|
||||
|
||||
struct request_queue;
|
||||
struct sas_rphy {
|
||||
struct device dev;
|
||||
struct sas_identify identify;
|
||||
struct list_head list;
|
||||
struct request_queue *q;
|
||||
u32 scsi_target_id;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user