scsi: sas: move scsi_remove_host call into sas_remove_host
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 21 Apr 2017 12:11:41 +0000 (14:11 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Apr 2017 14:34:29 +0000 (10:34 -0400)
commitc5ce0abeb62845352d7428d6b82e5b52e8728f12
tree5d4f82dc316734f96835416f739e1a25b1cba463
parent20961065a88a7ac8f7d7c8f256028304b55fa0b7
scsi: sas: move scsi_remove_host call into sas_remove_host

Move scsi_remove_host call into sas_remove_host and remove it from SAS
HBA drivers, so we don't mess up the ordering. This solves an issue with
double deleting sysfs entries that was introduced by the change of sysfs
behaviour from commit bcdde7e221a8 ("sysfs: make __sysfs_remove_dir()
recursive").

[mkp: addressed checkpatch complaints]

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Suggested-by: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: James Bottomley <jejb@linux.vnet.ibm.com>
Cc: Jinpu Wang <jinpu.wang@profitbricks.com>
Cc: John Garry <john.garry@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jinpu Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic94xx/aic94xx_init.c
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/isci/init.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c
drivers/scsi/mvsas/mv_init.c
drivers/scsi/pm8001/pm8001_init.c
drivers/scsi/scsi_transport_sas.c