[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1e28d39c4d45acbbc0d0def44990875f05968fd6.1492760075.git.jthumshirn@suse.de>
Date: Fri, 21 Apr 2017 10:04:46 +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 1/5] scsi: isci: 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/isci/init.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c
index 0b5b5db0d0f8..e5824758aece 100644
--- a/drivers/scsi/isci/init.c
+++ b/drivers/scsi/isci/init.c
@@ -272,10 +272,11 @@ static void isci_unregister(struct isci_host *isci_host)
return;
shost = to_shost(isci_host);
- scsi_remove_host(shost);
+
sas_unregister_ha(&isci_host->sas_ha);
sas_remove_host(shost);
+ scsi_remove_host(shost);
scsi_host_put(shost);
}
--
2.12.0
Powered by blists - more mailing lists