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

From: Kay Sievers
Date: Mon May 25 2009 - 07:45:47 EST

On Mon, May 25, 2009 at 04:06, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> 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

> 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at