Re: [PATCH] scsi: sas: move scsi_remove_host call into sas_remove_host

From: John Garry
Date: Mon Apr 24 2017 - 06:09:44 EST


On 21/04/2017 13:11, Johannes Thumshirn wrote:
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 bcdde7e ("sysfs: make __sysfs_remove_dir() recursive").

Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx>
Suggested-by: Christoph Hellwig <hch@xxxxxx>
Cc: Hannes Reinecke <hare@xxxxxxx>
Cc: James Bottomley <jejb@xxxxxxxxxxxxxxxxxx>
Cc: Jinpu Wang <jinpu.wang@xxxxxxxxxxxxxxxx>
Cc: John Garry <john.garry@xxxxxxxxxx>

For what it's worth:

Tested-by: John Garry <john.garry@xxxxxxxxxx> # On hisi_sas