Re: [PATCH] sysfs: Take sysfs_mutex when fetching the root inode.

From: Tejun Heo
Date: Fri Jan 23 2009 - 01:32:52 EST


Eric W. Biederman wrote:
> sysfs_get_inode ultimately calls sysfs_count_nlink when the a
> directory inode is fectched. sysfs_count_nlink needs to be
> called under the sysfs_mutex to guard against the unlikely
> but possible scenario that the root directory is changing
> as we are counting the number entries in it, and just in
> general to be consistent.
>
> Signed-off-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun
--
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/