Re: [PATCH 25/20] sysfs: Only support removing emtpy sysfs directories.

Kay Sievers
2009-05-25T11:45:44Z

On Mon, May 25, 2009 at 04:06, Alan Stern <stern@rowland.harvard.edu> wrote:

> This looks like a bug I found almost two weeks ago.  The bug was
> introduced by Arjan as part of his async conversion (the async routine
> runs without acquiring one of the mutexes held by its caller).  The
> result is a race in the sd driver -- no connection with USB,

Ah, I see.

> by the way -- so it's a little difficult to trigger.

I can trigger it pretty reliable now on plain -rc7 , but only with
more hubs in-between the storage device. It usually take less than
10-15 connect/disconnect cycles.

It looks like a serious bug though, after the bug triggered, random,
likely unrelated, applications crash, and I can not cleanly shot down
anymore.

> I posted a patch, but the
> reporter never said whether or not the patch fixed the problem.  Hence
> the patch hasn't been submitted.
>
> Here it is for you to try out.

I'll give it try now.

Kay