Re: [PATCH v2] libsas: fix "sysfs group not found" warnings at port teardown time

Johannes Thumshirn
2017-03-29T08:12:06Z

On Tue, Mar 28, 2017 at 05:41:49PM -0400, Tejun Heo wrote:
> > But as I said, I don't belive this is a problem in the SAS transport or the
> > SAS drivers, but a device core or transport class.
>
> So, what's most likely happening is that the parent device or kobject
> which contains the attribute group has already been removed earlier
> and because the removal is recursive, the later explicit removal is
> trying to remove already removed files. It can be fixed either by
> reordering so that the parent node is removed after the children or
> simply dropping the explicit removal of children.

Hi Tejun,

Thanks for haivng a look at this. I already did this earlier and it didn't have
an effect at all. But I forgot to flush the SAS desctruct workqueue so it didn't
have an effect.

Thanks for re-pointing me to it. Patches fixing the issue are coming finally :-).