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
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/