Messages in this thread | | | Date | Fri, 23 Jan 2009 15:28:14 +0900 | From | Tejun Heo <> | Subject | Re: [PATCH] sysfs: Take sysfs_mutex when fetching the root inode. |
| |
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@aristanetworks.com>
Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
-- tejun
| |