Re: [PATCH 0/2] Fix sysfs recursive removal splats in isci
From: James Bottomley
Date: Wed Mar 29 2017 - 07:39:17 EST
On Wed, 2017-03-29 at 11:41 +0200, Johannes Thumshirn wrote:
> This series fixes a sysfs warning caused by isci not being able to
> cope with recursive sysfs path removals which are in place since
> commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive").
>
> The mvsas, aic94xx and pm8001 and hisi_sas patches have been compile
> tested only hence they have no callstack of the affected path in
> their changelogs.
>
> I'm not sure whether to mark this patches as stable or not. I tend to
> say no here, although we've seen complaints/bug reports on lkml and
> the scsi list.
What happens to the SYNC CACHE for devices with write back caches? It
looks like you've already torn down most of the sas objects by the time
they're sent, so do they actually reach the device (or worse, do they
hang the system by not making progress)?
Assuming the above is OK, what about putting the state change inside
sas_remove_ha()? It's better than making every driver do it.
James