Re: Re: Re: [PATCH] fix race condition between device_del and device_add

From: gregkh@xxxxxxxxxxxxxxxxxxx
Date: Mon Mar 30 2015 - 10:24:26 EST


On Mon, Mar 30, 2015 at 02:02:27PM +0000, EunTaik Lee wrote:
>
> The problem was on 3.10.49.
>
> I carefully looked up the patches again and found out that there was
> a patch on 3.18 that will solve the problem
>
> commit e4a60d139060975eb956717e4f63ae348d4d8cc5
> sysfs: driver core: Fix glue dir race condition by gdp_mutex

Yes, you need a "real" lock to fix this type of race condition, I
thought we had fixed this a while ago, thanks for verifying it.

greg k-h
--
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/