[PATCH 02/14] sysfs: In sysfs_lookup protect s_parent with sysfs_mutex

Eric W. Biederman ebiederm at xmission.com
Tue Jul 31 03:45:21 PDT 2007


Tejun Heo <teheo at suse.de> writes:

> Eric W. Biederman wrote:
>> It turns out we have been being silly and have failed to
>> protect ourselves against races between sysfs_lookup
>> and operations that modify the sysfs directory like sysfs_readdir
>> and create_dir.
>> 
>> So this patch modifies sysfs_lookup to grab sysfs_mutex before
>> walking the parent->s_children list.
>
> Updated portion of #01 and #02 are identical to the cleanup patches I
> just posted.  :-)

I'm not surprised.  I will have to see what you have done after I have
slept.

Eric


More information about the Containers mailing list