lkml.org 
[lkml]   [2014]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH RFC] sysfs: fix the race of "parent deleted before child added"
From
On Fri, Aug 1, 2014 at 4:18 AM, Jianyu Zhan <nasa4836@gmail.com> wrote:
> From: Jianyu Zhan <Jianyu.Zhan@emc.com>
>
> I've met such a race conditon the same as what commit 3a198886
> ("sysfs: handle 'parent deleted before child added'") tackled.
>
> The senario got triggered under a torturing test of quick disk
> removal and plugging.
>
> The forementioned commit 3a198886 didn't really fix this race,
> it just narrows down the racy window.

You misread the changelog. It was never meant to be a fix, its there
to prevent abuses from crashing this system and rather return an
error.

The commit that fixed the race I was seeing is here:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=3b661a92

Perhaps you have found another occasion where a device is being
device_del()'d right before a device_add() attempt?


\
 
 \ /
  Last update: 2014-08-01 19:21    [W:0.052 / U:2.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site