diff options
| author | Jason Yan <yanaijie@huawei.com> | 2017-09-06 05:15:04 -0400 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-09-15 21:32:58 -0400 |
| commit | 042ebd293b862c491e31aea17b540317a1b9af21 (patch) | |
| tree | 2a0262b8f9e61a8512069f365950434bc5629eb8 /drivers/scsi/libsas/sas_init.c | |
| parent | 7eccdf005b2f240b9e9f53c72eb19367e21a8cf8 (diff) | |
scsi: libsas: kill useless ha_event and do some cleanup
The ha_event now has only one event HAE_RESET, and this event does
nothing. Kill it and do some cleanup.
This is a preparation for enhance libsas hotplug feature in the next
patches.
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
CC: Johannes Thumshirn <jthumshirn@suse.de>
CC: Ewan Milne <emilne@redhat.com>
CC: Christoph Hellwig <hch@lst.de>
CC: Tomas Henzl <thenzl@redhat.com>
CC: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
| -rw-r--r-- | drivers/scsi/libsas/sas_init.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index 64e9cdda1c3c..d3f5b57b3ebf 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c | |||
| @@ -106,17 +106,6 @@ void sas_hash_addr(u8 *hashed, const u8 *sas_addr) | |||
| 106 | hashed[2] = r & 0xFF; | 106 | hashed[2] = r & 0xFF; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | |||
| 110 | /* ---------- HA events ---------- */ | ||
| 111 | |||
| 112 | void sas_hae_reset(struct work_struct *work) | ||
| 113 | { | ||
| 114 | struct sas_ha_event *ev = to_sas_ha_event(work); | ||
| 115 | struct sas_ha_struct *ha = ev->ha; | ||
| 116 | |||
| 117 | clear_bit(HAE_RESET, &ha->pending); | ||
| 118 | } | ||
| 119 | |||
| 120 | int sas_register_ha(struct sas_ha_struct *sas_ha) | 109 | int sas_register_ha(struct sas_ha_struct *sas_ha) |
| 121 | { | 110 | { |
| 122 | int error = 0; | 111 | int error = 0; |
| @@ -154,7 +143,6 @@ int sas_register_ha(struct sas_ha_struct *sas_ha) | |||
| 154 | INIT_LIST_HEAD(&sas_ha->eh_ata_q); | 143 | INIT_LIST_HEAD(&sas_ha->eh_ata_q); |
| 155 | 144 | ||
| 156 | return 0; | 145 | return 0; |
| 157 | |||
| 158 | Undo_ports: | 146 | Undo_ports: |
| 159 | sas_unregister_ports(sas_ha); | 147 | sas_unregister_ports(sas_ha); |
| 160 | Undo_phys: | 148 | Undo_phys: |
