[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <0b94e2ae5bc364d8bd369bdd4db705504d0a0d73.1492760075.git.jthumshirn@suse.de>
Date: Fri, 21 Apr 2017 10:04:48 +0200
From: Johannes Thumshirn <jthumshirn@...e.de>
To: "Martin K . Petersen" <martin.petersen@...cle.com>
Cc: James Bottomley <jejb@...ux.vnet.ibm.com>,
Christoph Hellwig <hch@....de>, Hannes Reinecke <hare@...e.de>,
Bart Van Assche <Bart.VanAssche@...disk.com>,
Linux SCSI Mailinglist <linux-scsi@...r.kernel.org>,
Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Jinpu Wang <jinpu.wang@...fitbricks.com>,
John Garry <john.garry@...wei.com>, tj@...nel.org,
Johannes Thumshirn <jthumshirn@...e.de>
Subject: [PATCH v2 3/5] scsi: hisi_sas: remove the SAS host after the SCSI host
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the
removal path of kernfs to make it recursive we have to remove the SAS host
before the SCSI host or we will see sysfs warnings on not found sysfs groups for
kobjects.
Signed-off-by: Johannes Thumshirn <jthumshirn@...e.de>
Reviewed-by: Hannes Reinecke <hare@...e.com>
---
drivers/scsi/hisi_sas/hisi_sas_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 53637a941b94..9ae39226d454 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -1583,9 +1583,9 @@ int hisi_sas_remove(struct platform_device *pdev)
struct hisi_hba *hisi_hba = sha->lldd_ha;
struct Scsi_Host *shost = sha->core.shost;
- scsi_remove_host(sha->core.shost);
sas_unregister_ha(sha);
- sas_remove_host(sha->core.shost);
+ sas_remove_host(shost);
+ scsi_remove_host(shost);
hisi_sas_free(hisi_hba);
kfree(shost);
--
2.12.0
Powered by blists - more mailing lists