fix race condition between device_del and device_add
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
Sorry for bothering you.
Thanks,
Eun Taik Lee���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
Quoted 8 lines · EunTaik Lee
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 bygdp_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